Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default insert a dash

I have a column of 5-digit numbers. How do i insert a dash into each number
after the 3rd digit?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default insert a dash

Use a custom format of 000-00

--

HTH

RP
(remove nothere from the email address if mailing direct)


"acp20770" wrote in message
...
I have a column of 5-digit numbers. How do i insert a dash into each

number
after the 3rd digit?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default insert a dash

Enter the following formula in an adjacent column

=left(a1,3) & "-" & right(a1,2)
--
http://HelpExcel.com
1-888-INGENIO
1-888-464-3646
x0197758


"acp20770" wrote:

I have a column of 5-digit numbers. How do i insert a dash into each number
after the 3rd digit?

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
If I have a list of numbers, how do I insert a dash in each one? rayofsunshine969 Excel Discussion (Misc queries) 2 November 18th 09 07:43 PM
How insert a dash in the third position of a column with data? warren Excel Discussion (Misc queries) 1 July 19th 06 09:42 PM
Need insert a dash in between last 4 digits in text string Phil Excel Worksheet Functions 3 August 22nd 05 10:48 PM
Shortcut Key to insert an em-dash? Fred Holmes Excel Programming 1 May 23rd 05 06:43 PM
How to insert a repeating dash in phone numbers without dashes in. LemonLiptonTea New Users to Excel 3 February 5th 05 05:18 PM


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