A Microsoft Excel forum. ExcelBanter

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.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Multiple formats in one cell



 
 
Thread Tools Display Modes
  #1  
Old July 15th 12, 03:43 PM
MikeTi MikeTi is offline
Junior Member
 
First recorded activity by ExcelBanter: May 2012
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.
Ads
  #2  
Old July 15th 12, 09:45 PM posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld[_2_]
external usenet poster
 
Posts: 894
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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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 07:04 AM.


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