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
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 438 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 283 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!