Solved

Pull out zip code in excel

Posted on 2013-12-02
3
375 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 15

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

623 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