Excel Converting Zip plus 4 to just 5 number zip

Hi

Using Excel 2007

I have a column of zip codes that are zip plus 4.  I need a formula that will change it to just the regular zip.

Zip Code
93309-2156
93932-0446
92509-3600
93711-5770

Open in new window


The data can be numbers or text.  

I would like the result to be as follows.


Open in new window

Zip Code
93309
93932
92509

Open in new window


Thanks!

Rowby
LVL 9
Rowby GorenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

John-Charles-HerzbergCommented:
This is the formula you need.

=LEFT(A2, LEN(A2)-5)

Thanks
JC
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rowby GorenAuthor Commented:
Thanks John and JC

For the informative link and the formula.

Rowby
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Rowby GorenAuthor Commented:
Ooops I meant to split the points.  GIving 100 for the link and 400 for formula.

Can a Moderator help here?

Rowby
0
Rowby GorenAuthor Commented:
I left a request for the Moderator to fix the point split.

Rowby
0
Rowby GorenAuthor Commented:
OK WITH ME!  :)
0
Rowby GorenAuthor Commented:
Good.  Thanks to the Moderator for letting me correcting the point split.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.