Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing digits in a cell


I have telephone numbers listed in a column and need to change the area
code and the 3 digit exchange. example: 5555555555 to (444)444-5555.
please help


--
Hemming
------------------------------------------------------------------------
Hemming's Profile: http://www.excelforum.com/member.php...o&userid=32185
View this thread: http://www.excelforum.com/showthread...hreadid=519308

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Changing digits in a cell

Hi Hemming,

If your data is located in cell A1, this formula :
="("&LEFT(A1,3)&")"&MID(A1,4,3)&"-"&RIGHT(A1,4)

should do the job ...
HTH
Cheers
Carim

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing digits in a cell


Hi Carim, thanks for the help, it almost worked..... this works great if
I only have one cel to change however I have an entire Column how do I
change it to change more than one cell ( each cell has a different last
4 digits )


--
Hemming
------------------------------------------------------------------------
Hemming's Profile: http://www.excelforum.com/member.php...o&userid=32185
View this thread: http://www.excelforum.com/showthread...hreadid=519308

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing digits in a cell


can anyone help me with this ,,,,it is driving crazy !! thanks


--
Hemming
------------------------------------------------------------------------
Hemming's Profile: http://www.excelforum.com/member.php...o&userid=32185
View this thread: http://www.excelforum.com/showthread...hreadid=519308

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Changing digits in a cell

"Hemming" wrote in
message ...

can anyone help me with this ,,,,it is driving crazy !! thanks

If you have to change them all to the same area code and exchange, I'd use
this formula in another column:

if cell A1 is: 5555555555
put this in cell A2: =value("444444" & right(a1,4))

Then you get a number in A2, which you can format as a Phone Number (using
Format/Cells/Number/Special/Phone Number).

HTH,

Don



--
Hemming
------------------------------------------------------------------------
Hemming's Profile:
http://www.excelforum.com/member.php...o&userid=32185
View this thread: http://www.excelforum.com/showthread...hreadid=519308





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing digits in a cell


can this be used in a macro ?????


--
Hemming
------------------------------------------------------------------------
Hemming's Profile: http://www.excelforum.com/member.php...o&userid=32185
View this thread: http://www.excelforum.com/showthread...hreadid=519308

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Changing digits in a cell

"Hemming" wrote in
message ...

can this be used in a macro ?????

It could be, but, for changing the values in a single column, it's simplest
and quickest just to write a formula (using relative cell addressing),
format it properly, and copy it down all the rows.

HTH,

Don



--
Hemming
------------------------------------------------------------------------
Hemming's Profile:
http://www.excelforum.com/member.php...o&userid=32185
View this thread: http://www.excelforum.com/showthread...hreadid=519308



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA write macro change column with 3 number digits to 4 digits the James C[_2_] Excel Discussion (Misc queries) 3 January 25th 10 03:12 PM
number changing digits on paste from web apx file field Todd F. Excel Discussion (Misc queries) 0 March 15th 06 03:49 PM
Changing digits in a cell HELP Hemming Excel Discussion (Misc queries) 1 March 6th 06 02:27 PM
Why is Excel changing the last 2 digits of a 17 digit num to 00. Allie Excel Discussion (Misc queries) 2 July 29th 05 01:53 PM
changing 4 digits into 2 digit year frankg Excel Programming 5 October 1st 03 07:08 PM


All times are GMT +1. The time now is 07:53 PM.

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

About Us

"It's about Microsoft Excel"