Formula to separate address into 2 columns not working
I am attempting to use 2 formulas to separate an address that is comma deliminated, but the formula continually misses the mark.
The formulas in use:
Street address: =IFERROR(LEFT(Address@row, FIND(",", Address@row) - 1), "")
City, State, Zip: =IFERROR(RIGHT(Address@row, FIND(",", Address@row) - 1), "")
The Street address formula works fine, it is the second formula using RIGHT doesn't appear to work - it will remove portions of the address and I cannot figure out why. See screenshot.
Any ideas?
Best Answer
-
@Natalia Kataoka Keep in mind that FIND is still counting from the left. Try this:
=IFERROR(RIGHT(Address@row, (LEN(Address@row) - FIND(",", Address@row) - 1)), "")
As long as there is only one comma I think this works. (and as long as there is always a space after the comma.)
dm
Answers
-
@Natalia Kataoka Keep in mind that FIND is still counting from the left. Try this:
=IFERROR(RIGHT(Address@row, (LEN(Address@row) - FIND(",", Address@row) - 1)), "")
As long as there is only one comma I think this works. (and as long as there is always a space after the comma.)
dm
-
@Dale Murphy Ah, thank you! That worked.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!