A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Remove the - from a zip+4 cell



 
 
Thread Tools Display Modes
  #1  
Old April 6th, 2004, 04:21 AM
RagDyer
external usenet poster
 
Posts: n/a
Default Remove the - from a zip+4 cell

Use a "helper" column with this formula:

=SUBSTITUTE(A1,"-","")

Copy down as needed.

Now, to remove the formulas, and leave the data behind:
Select this column, right click in the selection, and choose "Copy".
Right click again and choose "PasteSpecial",
Click on "Values", then OK.

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Allen Clark" wrote in message
...
I am working on a conversion from an access DB to a SQL DB and I am using
Excel to format the text files into the formats that are required for the
data conversion scripts to run. I have several zipcode fields that have 5
or 9 digit zipcodes. Most of them have a - in the sixth position. In order
to format the data correctly, I must remove the - from the cell. Can anyone
recommend a way to remove the - and leave a 5 or 9 digit text value?

Thanks in advance,
Allen



  #2  
Old April 6th, 2004, 08:16 AM
Raider
external usenet poster
 
Posts: n/a
Default Remove the - from a zip+4 cell

=SUBSTITUTE(A1,"-","")
  #3  
Old April 6th, 2004, 03:00 PM
Allen Clark
external usenet poster
 
Posts: n/a
Default Remove the - from a zip+4 cell

Worked like a champ!

Thanks for the assistance!


"RagDyer" wrote in message
...
Use a "helper" column with this formula:

=SUBSTITUTE(A1,"-","")

Copy down as needed.

Now, to remove the formulas, and leave the data behind:
Select this column, right click in the selection, and choose "Copy".
Right click again and choose "PasteSpecial",
Click on "Values", then OK.

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"Allen Clark" wrote in message
...
I am working on a conversion from an access DB to a SQL DB and I am using
Excel to format the text files into the formats that are required for the
data conversion scripts to run. I have several zipcode fields that have 5
or 9 digit zipcodes. Most of them have a - in the sixth position. In

order
to format the data correctly, I must remove the - from the cell. Can

anyone
recommend a way to remove the - and leave a 5 or 9 digit text value?

Thanks in advance,
Allen





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.