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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
"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
|
|||
|
|||
"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/ |
#3
|
|||
|
|||
"Replace With" option
try
Sub makezeros() For Each c In Selection c.Value = "00" & Right(c, Len(c) - 2) Next c End Sub -- Don Guillett SalesAid Software "Joey " wrote in message ... 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/ |
Thread Tools | |
Display Modes | |
|
|
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 |