IF Index/ Match Return Yes or No
Hello,
I am using the below to return Yes or No as true or false matches. I am looking to Confirm if the Contact listed in [Requestor Contact] is also listed in range {Covered Persons List Range 3}. However, It is returning Yes across the board. My range covered 2 columns both in text. Do I need the range to be formatted the same as the search value column? Any guidance is appreciated, thanks.
Current Formula:
=IF(ISERROR(INDEX({Covered Persons List Range 3}, MATCH([Requestor Contact]@row, {Covered Persons List Range 3}, 0))), "Yes", "No")
Answers
-
I think you can do this 2 different ways that will work.
=iferror(if(index({Covered Persons List Range 3}, MATCH([Requestor Contact]@row, {Covered Persons List Range 3}, 0))=[Requestor Contact]@row,"Yes","No"),"No")
or you could use a countif formula instead where you do if countif blah blah equals 1, "yes" else "no".
Let me know if that helps you.
-
Thank you @Michael Culley , Unfortunately I am getting a No value for all entries.
-
What happens when you change the range to just 1 column? Does that at least work?
-
@Michael Culley Nope, I also tried changing the column to text like the range but no luck.
-
No I meant you said {Covered Persons List Range 3} covers 2 columns? Or did I misunderstand?
If that range is more than 1 column, try only referencing 1 column.
Screenshots would also help if you can provide that.
-
Yes, I did change the range to a 1 column range to test if that would fix the issue but no luck.
Example: {Covered Persons List Range 3} was changed to {Covered Persons List Range 1}, which is just the name column in that sheet.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!