Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Multiple formats in one cell

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Multiple formats in one cell

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

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
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


All times are GMT +1. The time now is 08:12 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"