Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
LACA
 
Posts: n/a
Default Format sequence for phone numbers?


I can't figure out what the "text" format of a telephone number is.

If cell A1 contains the text "Telephone"
and cell A2 = (213) 555-1234
(I've formatted cell A2 with FormatCellSpecialPhone Number so that
it always appears in this format).

I have an output cell with the following formula:

=A1&": "&A2

and I get this:

Telephone: 2135551234

so then I tried to modify my formula to this:

=A1&": "&TEXT(A2,??)

But I don't know what to put where the question marks are.

This should be really simple but I just don't know.

Can someone help?

Thanks.


--
LACA
------------------------------------------------------------------------
LACA's Profile: http://www.excelforum.com/member.php...o&userid=30381
View this thread: http://www.excelforum.com/showthread...hreadid=547280

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Format sequence for phone numbers?

A2 actually contains: 2135551234, but it's formatted to look nice.

You could try:
=A1&": "&TEXT(A2,"(000) 000-0000")

or if there's a chance that a2 contains a 7 digit number:
=A1&": "&TEXT(A2,"[<=9999999]000-0000;(000) 000-0000")

LACA wrote:

I can't figure out what the "text" format of a telephone number is.

If cell A1 contains the text "Telephone"
and cell A2 = (213) 555-1234
(I've formatted cell A2 with FormatCellSpecialPhone Number so that
it always appears in this format).

I have an output cell with the following formula:

=A1&": "&A2

and I get this:

Telephone: 2135551234

so then I tried to modify my formula to this:

=A1&": "&TEXT(A2,??)

But I don't know what to put where the question marks are.

This should be really simple but I just don't know.

Can someone help?

Thanks.

--
LACA
------------------------------------------------------------------------
LACA's Profile: http://www.excelforum.com/member.php...o&userid=30381
View this thread: http://www.excelforum.com/showthread...hreadid=547280


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
LACA
 
Posts: n/a
Default Format sequence for phone numbers?


Thank you!


--
LACA
------------------------------------------------------------------------
LACA's Profile: http://www.excelforum.com/member.php...o&userid=30381
View this thread: http://www.excelforum.com/showthread...hreadid=547280

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
Conditional format from a list of numbers langba Excel Discussion (Misc queries) 3 April 7th 06 11:02 AM
Format numbers returned in the function CONCATENATE Kip Excel Discussion (Misc queries) 3 April 5th 06 06:59 PM
Conditional format numbers PiPPo Excel Worksheet Functions 5 October 18th 05 05:03 AM
Is there a way to only format numbers that have digitsafter decima Sam Excel Discussion (Misc queries) 6 July 18th 05 04:10 PM
Format numbers in chart datatable MB Charts and Charting in Excel 3 May 29th 05 03:37 PM


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