#1   Report Post  
mes44
 
Posts: n/a
Default Existing Excel Data


Hello everyone,

Is there an easy way to insert dashes (-) into existing data. For
example, I want to insert dashes into the following data 123456789, I
want it to look like this, 123456-78-9. I have many records to do this
to, so any help is much appreciated.

Thanks.


--
mes44
------------------------------------------------------------------------
mes44's Profile: http://www.excelforum.com/member.php...o&userid=28183
View this thread: http://www.excelforum.com/showthread...hreadid=477128

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default Existing Excel Data

If the cells are numeric, you could use a custom format:

format|cells|custom category
000000-00-0

The value in the cells won't change, but what is shown will.





mes44 wrote:

Hello everyone,

Is there an easy way to insert dashes (-) into existing data. For
example, I want to insert dashes into the following data 123456789, I
want it to look like this, 123456-78-9. I have many records to do this
to, so any help is much appreciated.

Thanks.

--
mes44
------------------------------------------------------------------------
mes44's Profile: http://www.excelforum.com/member.php...o&userid=28183
View this thread: http://www.excelforum.com/showthread...hreadid=477128


--

Dave Peterson
  #3   Report Post  
swatsp0p
 
Posts: n/a
Default Existing Excel Data


Assuming you have nine digit numbers and you want the dash after digits
6 and 8, use this:

=LEFT(A1,6)&"-"&MID(A1,7,2)&"-"&RIGHT(A1,1) where A1 holds your nine
digit number. Displays: 123456-78-9 in the formula cell.

If you only want the appearance of the dashes, without actually
changing the data, use Custom formatting: ######-##-# Displays
123456-78-9 in the original cell, while the contents remain 123456789.

Good Luck


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=477128

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
How to import data from a password protected Access DB into Excel. Agus Excel Discussion (Misc queries) 0 October 12th 05 05:42 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
convert existing Excel into Data source document to link to exist. KayLMPD Excel Discussion (Misc queries) 1 March 29th 05 12:37 PM
Adding more source data to existing scatter plot Tom Charts and Charting in Excel 1 March 21st 05 10:03 PM
How can deleted data reappear in a refreshed pivot table in Excel excel_user123456 Excel Discussion (Misc queries) 3 February 23rd 05 08:34 PM


All times are GMT +1. The time now is 11:17 PM.

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"