Index Match Else
Greeting All,
I have created a simple index match that successfully matches state/province from my reference datasheet to pull in the corresponding district.
I would love to indicate "N/A" for the instances when a state is blank but I cannot figure out the argument.
=INDEX({District}, MATCH([State/Prov]@row, {Reference Datasheet State/Prov}, 0))
Thank you in advance for any help.
Tina
Best Answer
-
Thanks J. I attempted adding string suffix that you suggested, but it did not work.
Maybe an if/then will work?
Answers
-
Hello Tina!
Have you tried to encapsulate your formula with and IFERROR
=IFERROR(INDEX({District}, MATCH([State/Prov]@row, {Reference Datasheet State/Prov}, 0)),"N/A")
Maybe this could work!
Hope this could be useful, good vibes for you!
J
-
Thanks J. I attempted adding string suffix that you suggested, but it did not work.
Maybe an if/then will work?
-
Adding the if statement did work!!
=IF([State/Prov]@row <> "", INDEX({District}, MATCH([State/Prov]@row, {Reference Datasheet State/Prov}, 0)), "N/A")
Thanks J for your inspiration.
Cheers,
Tina
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!