Created
February 13, 2014 00:22
-
-
Save danromero/8967335 to your computer and use it in GitHub Desktop.
Parse string of US address format into component parts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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