Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() I have a column of telephone numbers. I need to change the area code and first three digits of each of these numbers to a new area code and new first thee digits. Example: 5555555555 change to (444)444-5555. notice the last four digits need to stay the same. If I have 100 numbers to change, the last 4 digits will be 100 unique numbers. The formula =value(“444444”&right(a1:a100,4)) works however I need to do this as part of a Macro ( for ease to the person using the spreadsheet ) need some help PLEASE !!! thanks -- Hemming ------------------------------------------------------------------------ Hemming's Profile: http://www.excelforum.com/member.php...o&userid=32185 View this thread: http://www.excelforum.com/showthread...hreadid=520558 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
For instance:
Range("B2:B100").Formula="=VALUE(""444444""&RIGHT( A1,4)) HTH -- AP "Hemming" a écrit dans le message de ... I have a column of telephone numbers. I need to change the area code and first three digits of each of these numbers to a new area code and new first thee digits. Example: 5555555555 change to (444)444-5555. notice the last four digits need to stay the same. If I have 100 numbers to change, the last 4 digits will be 100 unique numbers. The formula =value("444444"&right(a1:a100,4)) works however I need to do this as part of a Macro ( for ease to the person using the spreadsheet ) need some help PLEASE !!! thanks -- Hemming ------------------------------------------------------------------------ Hemming's Profile: http://www.excelforum.com/member.php...o&userid=32185 View this thread: http://www.excelforum.com/showthread...hreadid=520558 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
See your previous post.
Hemming wrote: I have a column of telephone numbers. I need to change the area code and first three digits of each of these numbers to a new area code and new first thee digits. Example: 5555555555 change to (444)444-5555. notice the last four digits need to stay the same. If I have 100 numbers to change, the last 4 digits will be 100 unique numbers. The formula =value(“444444”&right(a1:a100,4)) works however I need to do this as part of a Macro ( for ease to the person using the spreadsheet ) need some help PLEASE !!! thanks -- Hemming ------------------------------------------------------------------------ Hemming's Profile: http://www.excelforum.com/member.php...o&userid=32185 View this thread: http://www.excelforum.com/showthread...hreadid=520558 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
moving the formula "average" over one column in a macro | Excel Worksheet Functions | |||
Formula for current month minus one = Quarter number in a macro. | Excel Discussion (Misc queries) | |||
Help on Macro or Formula | Excel Discussion (Misc queries) | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Fill Formula - Macro | Excel Discussion (Misc queries) |