Solved

Pull out zip code in excel

Posted on 2013-12-02
3
370 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

773 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