Skip to content

Instantly share code, notes, and snippets.

@danromero
Created February 13, 2014 00:22
Show Gist options
  • Save danromero/8967335 to your computer and use it in GitHub Desktop.
Save danromero/8967335 to your computer and use it in GitHub Desktop.
Parse string of US address format into component parts
Input:
A1 | 301 Brannan St, San Francisco, CA 94107
Formulas:
B1 | =left(A1,find(",",A1)-1)
C1 | =MID(A1,find(",",A1)+1,find(",",A1)-1)
D1 | =left(right(A1,8),2)
E1 | =right(right(A1,8),5)
Ouput:
B1 | 301 Brannan St
C1 | San Francisco
D1 | CA
E1 | 94107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment