Skip to main content

How to extract state, zip code or city from address in Excel?

For extracting state, zip code or city from address cell to individual cells, what would you do? With this article, we will show you formulas to deal with this problem. Please browse for more details.

Extract state, zip code or city from address in Excel

Extract state from address
Extract zip code from address
Extract city from address


Extract state, zip code or city from address in Excel

Supposing the address locates in cell A2, please do as follows step by step to extract state, zip code or city from address in Excel.

Extract state from address

1. Select a blank cell to place the extracted state. Here I select cell B2.

2. Copy the below formula into it, and then press the Enter key.

=MID(SUBSTITUTE(A2," ",""), FIND(",",SUBSTITUTE(A2," ",""))+8,2)

Then you will get the State in the selected cell.

Notes:

1). In the formula, A2 is the cell which locates the full address;
2). The number 8 is the eighth character as well as the first character of the state after the first comma of the address;
3). The number 2 means that the state in this address just includes two characters. You can change the numbers based on your own address.

Extract zip code from address

1. Select a blank cell, copy the below formula into it and then press the Enter key.

=MID(SUBSTITUTE(A2," ",""), FIND(",",SUBSTITUTE(A2," ",""))+10,5)

Note: As the above notes mentioned, the number 10 in the formula is the tenth character after the first comma; and the number 5 means that there are five numbers constitute the zip code.

Please click How to extract postcode from address list in Excel? for more details of extract zip code from address.

Extract city from address

For extracting the city from address, just change the last two numbers of the above formula to 1 and 6.

=MID(SUBSTITUTE(A2," ",""), FIND(",",SUBSTITUTE(A2," ",""))+1,6)


Easily extract email domain from email address in Excel:

With Kutools for Excel's Extract Text utility, you can easily extract email domain from email address or extract text between two symbols from cells in Excel. Download and try it now! (30-day free trail)


Related Article:

Best Office Productivity Tools

Supports Office/Excel 2007-2021 and 365  |  Available in 44 Languages  |  Easy to Uninstall Completely

Popular Features: Find/Highlight/Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns     Move Columns   |   Unhide Columns   |   Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need Is Just A Click Away...

Supercharge Your Excel Skills: Experience Efficiency Like Never Before with Kutools for Excel  (Full-Featured 30-Day Free Trial)

kte tab 201905

60-Day Unconditional Money-Back GuaranteeRead More... Free Download... Purchase... 

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day! (Full-Featured 30-Day Free Trial)
60-Day Unconditional Money-Back GuaranteeRead More... Free Download... Purchase... 
 
Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I use stringlearner.com to extract zip code from address.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations