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
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 460 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!