How can I get this formula to return a value when two criteria are met?
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
Best Answer
-
You'll need an INDEX/COLLECT instead.
=IF(ISBLANK([Vendor #]@row), "No Match Found", IFERROR(INDEX(COLLECT({Contract & Exhibit Tracker - Payment Terms}, {Contract & Exhibit Tracker - Vendor #}, [Vendor #]@row, {Status Range}, @cell <> "Inactive"), 1), "No Match Found"))
Answers
-
You'll need an INDEX/COLLECT instead.
=IF(ISBLANK([Vendor #]@row), "No Match Found", IFERROR(INDEX(COLLECT({Contract & Exhibit Tracker - Payment Terms}, {Contract & Exhibit Tracker - Vendor #}, [Vendor #]@row, {Status Range}, @cell <> "Inactive"), 1), "No Match Found"))
-
This worked like a charm. Thank you, Paul!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!