Extract ZIP Code (Numbers) from the left of an address GSHEETS

yessir

Board Regular
Joined
Jun 7, 2019
Messages
103
Office Version
  1. 2021
Platform
  1. MacOS
Hello,

I'm looking for a formula that would be able to extract only the last digits (zip code) from an address. All addresses are formatted the same way.

1253 S Lone Hill Ave, Glendora, CA 91740formula here to extract zip code (would display 91740)
13910 Poway Rd, Poway, CA 92064

Anything helps! Thanks.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hello,

I'm looking for a formula that would be able to extract only the last digits (zip code) from an address. All addresses are formatted the same way.

1253 S Lone Hill Ave, Glendora, CA 91740formula here to extract zip code (would display 91740)
13910 Poway Rd, Poway, CA 92064

Anything helps! Thanks.
You can use
Excel Formula:
right(text,5)
. where text is the cell with the address. Hope this helps.
 
Upvote 0
Hi there

You can also try the formula below... Should work with varying lengths of zip code should it happen.

Book1
AB
11253 S Lone Hill Ave, Glendora, CA 9174091740
213910 Poway Rd, Poway, CA 9206492064
31245 Some Address, Elswhere, 125125
Sheet1
Cell Formulas
RangeFormula
B1:B3B1=RIGHT(A1, LEN(A1)-MAX(IF(ISNUMBER(MID(A1, ROW(INDIRECT("1:"&LEN(A1))),1) *1)=FALSE, ROW(INDIRECT("1:"&LEN(A1))), 0)))
 
Upvote 0
Power Query alternative:

1668159266441.png
 
Upvote 0

Forum statistics

Threads
1,223,317
Messages
6,171,422
Members
452,402
Latest member
siduslevis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top