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.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!