Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Angela
 
Posts: n/a
Default I need to add a dash five characters from the first in a cell

I have zip codes in a field fields that I need to add a dash between the
first part of the zip and the second four numbers so the instead of looking
like "902101234", it looks like "90210-1234". How do I do this?
  #2   Report Post  
David Billigmeier
 
Posts: n/a
Default

This looks like a zip code, is it? If so, you can just format it as such...
Format-Cells-'Number' Tab-Special-"Zip Code + 4"

Otherwise you can use this formula:
=CONCATENATE(LEFT(A1,5),"-",RIGHT(A1,4))

Change the A1 reference to match your data.


--
Regards,
Dave


"Angela" wrote:

I have zip codes in a field fields that I need to add a dash between the
first part of the zip and the second four numbers so the instead of looking
like "902101234", it looks like "90210-1234". How do I do this?

  #3   Report Post  
David Billigmeier
 
Posts: n/a
Default

haha I just re-read your post and noticed you specified it was a zip code...
you can use the first part of my post to format it! :-)

--
Regards,
Dave


"Angela" wrote:

I have zip codes in a field fields that I need to add a dash between the
first part of the zip and the second four numbers so the instead of looking
like "902101234", it looks like "90210-1234". How do I do this?

  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

If you just need it to display with the dash, choose the appropriate
format from the Format/Cells/Number/Special dialog.

If you actually need the - inserted, one way:

B1: =TEXT(A1,"00000-0000")

In article ,
Angela wrote:

I have zip codes in a field fields that I need to add a dash between the
first part of the zip and the second four numbers so the instead of looking
like "902101234", it looks like "90210-1234". How do I do this?

  #5   Report Post  
Angela
 
Posts: n/a
Default

Ha Ha is right but that's Great! I really appreciate it!

"David Billigmeier" wrote:

haha I just re-read your post and noticed you specified it was a zip code...
you can use the first part of my post to format it! :-)

--
Regards,
Dave


"Angela" wrote:

I have zip codes in a field fields that I need to add a dash between the
first part of the zip and the second four numbers so the instead of looking
like "902101234", it looks like "90210-1234". How do I do this?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default I need to add a dash five characters from the first in a cell

Thanks. This is exactly what I needed to do. The instructions were easy and
my envelopes mail merge correctly now.
Vivian

"Angela" wrote:

I have zip codes in a field fields that I need to add a dash between the
first part of the zip and the second four numbers so the instead of looking
like "902101234", it looks like "90210-1234". How do I do this?

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
Max number of characters in a cell Dajana Excel Discussion (Misc queries) 1 September 25th 05 10:41 PM
Exporting to CSV file with Chinese Characters in Spreadsheet Just Me Excel Discussion (Misc queries) 1 August 17th 05 11:37 AM
remove last three characters of cell mira Excel Discussion (Misc queries) 8 July 28th 05 12:06 AM
Problem with counting characters in a cell Tink Excel Worksheet Functions 2 June 27th 05 12:52 PM
Deleting 3 Text characters from the right Helen Excel Worksheet Functions 7 April 26th 05 04:17 PM


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