Multiple If Statements not working?

Hello,
I'm trying to setup a multiple IF statement but I'm encountering an error where the 2nd multiple if statement does not run. The first statement runs correctly but the subsequent statements always fail.
The Formula:
=IF(INDEX({Area 1 (AMER) QC sheet Range 4}, MATCH([SIM T: Customer Request]@row, {Area 1 (AMER) QC sheet Range 3}), 31) = "Yes", INDEX({Area 1 (AMER) QC sheet Range 4}, MATCH([SIM T: Customer Request]@row, {Area 1 (AMER) QC sheet Range 3}), 31), IF(INDEX({Area 1 (AMER) QC sheet Range 5}, MATCH([SIM T: Customer Request]@row, {Area 1 PS Sim Ticket}), 32) = "Yes", INDEX({Area 1 (AMER) QC sheet Range 5}, MATCH([SIM T: Customer Request]@row, {Area 1 PS Sim Ticket}), 32), "No"))
The ask:
I need to verify that work has been completed in 7 different sheets against 1 master sheet.
Is anyone able to help? I'm not sure what I'm missing
Answers
-
hi @patkyle I think whatβs happening is that when you use the INDEX/MATCH as the evaluation criteria, when it doesnβt find a match it errors out. You could do a few things. Easiest may be to wrap the INDEX/MATCH in an IFERROR statement, with the error being βNoβ.
=IF(IFERROR(INDEX({Area 1 (AMER) QC sheet Range 4}, MATCH([SIM T: Customer Request]@row, {Area 1 (AMER) QC sheet Range 3}), 31),βNoβ) = "Yes", etc.
However, perhaps cleaner would be to replace that INDEX/MATCH with a COUNTIFS, which would return a count of 0 if it didnβt find anything, instead of erroring out. It would look something like:
=IF(COUNTIFS(<your criteria>)>0, etc
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!