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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!