Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default how to put dashes in a number 13000000000 to 1300-000-0000

how to put dashes in a number 13000000000 to 1300-000-0000
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default how to put dashes in a number 13000000000 to 1300-000-0000

=LEFT(A1,4)&"-"&MID(A1,5,3)&"-"&RIGHT(A1,4)

the above is if A1 contains your value.

"Jimbo" wrote:

how to put dashes in a number 13000000000 to 1300-000-0000

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default how to put dashes in a number 13000000000 to 1300-000-0000

Use a custom format of

0000-000-0000

if you need it as text, use a help column and a formula like

=TEXT(A2,"0000-000-0000")

copy down/across, then select all formula and copy and paste special as
values in place


--
Regards,

Peo Sjoblom


"Jimbo" wrote in message
...
how to put dashes in a number 13000000000 to 1300-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
Removing dashes from ISBN's while still keeping 1st number (zero) aprilb Excel Worksheet Functions 3 October 12th 06 06:15 PM
removing dashes changes test into number DanM Excel Discussion (Misc queries) 3 September 21st 06 03:06 AM
How do I format a social security number to have no dashes? Kim Excel Discussion (Misc queries) 5 July 17th 06 10:13 PM
Phone number format from 000.000.0000 to (000)000-0000 Janice Excel Discussion (Misc queries) 4 June 24th 05 12:46 AM
(social security number) 000-00-0000 to 000000000 Cucuaq Excel Discussion (Misc queries) 1 January 29th 05 01:35 AM


All times are GMT +1. The time now is 03:33 AM.

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"