Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Can I format telephone numbers?

I have somehow messed up my tel numbers.. idiot!
Previously 011 740 1342, 082 443 0707 and 09 64 456 8799 in different cells.
Now 117401342, 824430707 and 9644568799. Cells are formatted as "numbers, 0
decimals"
Lost the preceding zeros and the spaces. Formatting as "text" does not help.
Other than doing each cell manually (I have over 200 names), is there a way
to get back to what I had before.
The file has been saved - I cannot "undo"...clot!



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Can I format telephone numbers?

Your problem is that you don't have the same format for all of your numbers.
You have 10 and 11 digit configurations.
How can you differentiate between them?

If they were all 10 digits with a 3-3-4 configuration, you could custom
format your cells to:

000 000 0000

Which would take care of replacing the missing leading 0's.

Don't know what to suggest for telling the 11 digit numbers apart from the
10 digit ones.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------



"SouthAfricanStan" <me@there wrote in message
...
I have somehow messed up my tel numbers.. idiot!
Previously 011 740 1342, 082 443 0707 and 09 64 456 8799 in different

cells.
Now 117401342, 824430707 and 9644568799. Cells are formatted as "numbers,

0
decimals"
Lost the preceding zeros and the spaces. Formatting as "text" does not

help.
Other than doing each cell manually (I have over 200 names), is there a

way
to get back to what I had before.
The file has been saved - I cannot "undo"...clot!




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 100
Default Can I format telephone numbers?

Assuming your data of new messed numbers in ColumnA and starts from A1, and
goes down like A2, A3, ...

Try this ...

Paste following function in B1 and copy it to the following cells i.e., B2,
B3, ...

=IF(LEN(A1)<=9,("0"&LEFT(RIGHT(A1,9),2)),("0"&MID( A1,1,LEN(A1)-9))&"
"&(LEFT(RIGHT(A1,9),2)))&" "&LEFT(RIGHT(A1,7),3)&" "&RIGHT(A1,4)


*** Please do rate ***




"SouthAfricanStan" wrote:

I have somehow messed up my tel numbers.. idiot!
Previously 011 740 1342, 082 443 0707 and 09 64 456 8799 in different cells.
Now 117401342, 824430707 and 9644568799. Cells are formatted as "numbers, 0
decimals"
Lost the preceding zeros and the spaces. Formatting as "text" does not help.
Other than doing each cell manually (I have over 200 names), is there a way
to get back to what I had before.
The file has been saved - I cannot "undo"...clot!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Can I format telephone numbers?

Great! Thank You!
"Naveen" wrote in message
...
Assuming your data of new messed numbers in ColumnA and starts from A1,
and
goes down like A2, A3, ...

Try this ...

Paste following function in B1 and copy it to the following cells i.e.,
B2,
B3, ...

=IF(LEN(A1)<=9,("0"&LEFT(RIGHT(A1,9),2)),("0"&MID( A1,1,LEN(A1)-9))&"
"&(LEFT(RIGHT(A1,9),2)))&" "&LEFT(RIGHT(A1,7),3)&" "&RIGHT(A1,4)


*** Please do rate ***




"SouthAfricanStan" wrote:

I have somehow messed up my tel numbers.. idiot!
Previously 011 740 1342, 082 443 0707 and 09 64 456 8799 in different
cells.
Now 117401342, 824430707 and 9644568799. Cells are formatted as "numbers,
0
decimals"
Lost the preceding zeros and the spaces. Formatting as "text" does not
help.
Other than doing each cell manually (I have over 200 names), is there a
way
to get back to what I had before.
The file has been saved - I cannot "undo"...clot!






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
Why are 1/2 my numbers imported as text and the rest as numbers? KBear Excel Discussion (Misc queries) 2 April 21st 06 01:40 PM
Format Telephone Cell Range Victor Costello Excel Worksheet Functions 2 October 2nd 05 07:42 PM
Formulas for telephone numbers: finding duplicates, autoformat Sandeep Elbak Excel Worksheet Functions 3 May 4th 05 07:59 AM
Numbers aren't changing with new format why? Cyndy Excel Discussion (Misc queries) 4 March 17th 05 07:15 AM
Telephone number format MarkT Excel Discussion (Misc queries) 6 January 18th 05 10:39 PM


All times are GMT +1. The time now is 10:35 AM.

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

About Us

"It's about Microsoft Excel"