LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Phone Formatting

For a single line extraction try:

=IF(ISERROR(LEFT(A1,1)*1),(MID(A1,2,3)&"-"&RIGHT(A1,8)),
(MID(A1,1,3)&"-"&RIGHT(A1,8)))

A little more resilient but still assumes that the last 7 digits are
split with a hyphen

Copy down as needed.

Nick



 
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
Phone number formatting ms_kitty007 Excel Discussion (Misc queries) 4 October 12th 06 07:20 AM
Phone Number formatting ChrisMattock Excel Worksheet Functions 4 June 22nd 06 02:57 PM
PHONE NUMBER formatting [email protected] Excel Worksheet Functions 3 April 12th 06 05:44 PM
Formatting a Phone Number Formatting Phone Number Excel Discussion (Misc queries) 3 April 6th 06 08:23 PM
Phone Number Formatting Brant Nyman Excel Discussion (Misc queries) 5 August 25th 05 06:56 PM


All times are GMT +1. The time now is 06:38 PM.

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"