Solved

Pull out zip code in excel

Posted on 2013-12-02
3
367 Views
Last Modified: 2013-12-02
I have Column K that has thousands of zip code. Some of the zip codes are just the 5 digits and some are the 5 digits then a dash and 4 more digits.

I need to have a column of just the 5 digits, not the "dash-four more". Any way I can either delete the dash info or simply pull out the first 5 digits? For example:

Column K
93706
93722-2451
84487-5474
92653
87415-5474

Thanks!
0
Comment
Question by:cansevin
3 Comments
 
LVL 9

Expert Comment

by:BlueYonder
ID: 39690577
The formula is below.  Fill A1 with the specified cell.
=LEFT(K1, 5)
0
 
LVL 14

Accepted Solution

by:
Giovanni Heward earned 500 total points
ID: 39690584
Create a new column and use the LEFT function.

A1 = 10001-1001
B2 = LEFT(A1,5)
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39690600
You can also use
Data > Text to columns > Delimited > Use the "-" character
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now