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!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!