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
Check out the Formula Handbook template!