How can I get this formula to return a value when two criteria are met?

LSW
LSW
edited 11/04/24 in Formulas and Functions

Initially, I used the formula below to return the Payment Term value from my Contract & Exhibit Tracker where the vendor #s match between my source sheet and output sheet. And it worked.

=IF(ISBLANK([Vendor #]@row), "No Match Found", IFERROR(INDEX({Contract & Exhibit Tracker - Payment Terms}, MATCH([Vendor #]@row, {Contract & Exhibit Tracker - Vendor #}, 0)), "No Match Found"))

HOWEVER, the Contract/Exhibit Tracker contains "inactive" contracts that I want to ignore, so using the AI formula generator and attempted to use this formula:

=IF(ISBLANK([Vendor #]@row), "No Match Found", IFERROR(INDEX({Contract & Exhibit Tracker - Payment Terms}, MATCH([Vendor #]@row, {Contract & Exhibit Tracker - Vendor #}, 0), IF(OR({Contract & Exhibit Tracker - Status} = "ACTIVE", {Contract & Exhibit Tracker - Status} = "DRAFT"), 1, 0)), "No Match Found"))

Now all rows are coming back "No Match Found" instead of returning the Payment Term value where there is a match.

Can anyone help me troubleshoot? I have exhausted my skillset

Tags:

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!