A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Replace With" option



 
 
Thread Tools Display Modes
  #1  
Old July 2nd, 2004, 02:44 PM
Joey
external usenet poster
 
Posts: n/a
Default "Replace With" option

Hi all

I would like to amend a column with phone numbers and change only the
first two characters to a "0"

Most of the numbers look like this;
44131 555 8000

It should all read like this;
0131 555 8000

I could use the Ctl H feature but it would affect the number if "44"
appeared in the middle or end of the number.


Is this possible??


Thanks for any advice
Joey


---
Message posted from http://www.ExcelForum.com/

  #2  
Old July 2nd, 2004, 03:12 PM
AlfD
external usenet poster
 
Posts: n/a
Default "Replace With" option

Hi!

Try this in another column and copy down:

=IF(LEFT(C2,2)="44","0"&MID(C2,3,LEN(C2)-2),C2)

where your number is in C2.

If you have large number of unwanted prefixes, you might find it useful
to analyse them with Data AutoFilter, if only to get a list of them.

But you can then ask AutoFilter to do a Custom selection using things
like "Begins with".

Alf


---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo Box selection disappearing on new record and change of option selection EmmA Using Forms 2 June 17th, 2004 02:21 AM
Option button Aniko Using Forms 1 June 4th, 2004 08:26 AM
Find and Replace in Word 97 Doug Robbins - Word MVP General Discussion 1 May 28th, 2004 02:41 PM
find all / replace all used in a selected range oldguy Worksheet Functions 0 February 26th, 2004 01:05 PM


All times are GMT +1. The time now is 07:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.