INDEX Match or INDEX Collect - formula error

Sheet 1: contains a list with Job #'s and info
Sheet 2: Contains data, with job #'s
I want to look up the matching "Job #" (Sheet 1) on Sheet 2 and then, if not on "Hold" (separate column), I want to pull in the cell data from a specific column named "Prep".
This is the basic formula that I am using and I am getting error "#Incorrect Argument Set"
=INDEX(COLLECT({Sheet 2 Prep Column}, {Sheet 2 Job # Column}, [Job #]@row, {Sheet 2 Hold Column}, <>"HOLD"))
Previously, my formula worked as this:
=INDEX({Sheet 2 Prep Column}, MATCH([Job #]@row, {Sheet 2 Job # Column}, 0))
BUT, it was only pulling in the first instance of the match, which was on hold. I want it to pull the cell data on the first "Non-Hold" instance.
Please help! ;)
Best Answer
-
You need to specify a row number in the INDEX function:
=INDEX(COLLECT({Sheet 2 Prep Column}, {Sheet 2 Job # Column}, [Job #]@row, {Sheet 2 Hold Column}, <>"HOLD"), 1)
Answers
-
You need to specify a row number in the INDEX function:
=INDEX(COLLECT({Sheet 2 Prep Column}, {Sheet 2 Job # Column}, [Job #]@row, {Sheet 2 Hold Column}, <>"HOLD"), 1)
-
PERFECT!! Thank you Paul!
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!