![]() |
| 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
|
|||
|
|||
|
Hi,
I am trying to figure out how to have multiple phone number formats in one cell. For example; I enter 9 digits into cell A1 for a U.S. phone number or 10 digits for a European phone number. I would like cell A1 to format the cell as +1 (123) 456-7891 for 9 digits and + 12 34 567 8910 for 10 digits. Is this possible to do without creating multiple cells? Your help is greatly appreciated. |
| Ads |
|
#2
|
|||
|
|||
|
On Sun, 15 Jul 2012 14:43:57 +0000, MikeTi > wrote:
> >Hi, >I am trying to figure out how to have multiple phone number formats in >one cell. For example; >I enter 9 digits into cell A1 for a U.S. phone number or 10 digits for a >European phone number. I would like cell A1 to format the cell as +1 >(123) 456-7891 for 9 digits and + 12 34 567 8910 for 10 digits. Is this >possible to do without creating multiple cells? Your help is greatly >appreciated. 1. Note that US numbers have ten digits, and your European number example has 11 digits, although others have more. 2. So long as the first digit is not a zero, you can use the following custom format to differentially format numbers with 10 digits or less, vs those with more than 10 digits: Format/Cells/Number/Custom Type: [<=9999999999]"+1 ("000) 000-0000;[>9999999999]+ 00 00 000 0000 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple Formats per Cell | Timo | Excel Worksheet Functions | 6 | December 6th 08 11:30 PM |
| Multiple formats in a single cell with multiple formulas | Zakhary | Excel Worksheet Functions | 1 | May 2nd 08 12:08 AM |
| Multiple Formats In The Same Cell | nospaminlich | Excel Programming | 3 | July 30th 07 11:00 AM |
| Multiple formats in the same cell | [email protected] | Excel Worksheet Functions | 2 | January 16th 07 11:49 PM |
| Multiple formats within a cell | gailann | Excel Discussion (Misc queries) | 5 | June 7th 06 03:42 PM |