Why do I get #invalid value?
Hi everyone!
I am using this formula in the Date column to pull a date if 2 criteria are met (name of the client and the specific module): =INDEX({Date}, MATCH([Column11]3, {Client}, 0), MATCH([Column4]@row, {Module}, 0))
It works in the "Module 1" row, but not below, any idea why? Thanks!
Best Answer
-
You need to specify which item from the list that the COLLECT function pulls together that you want to INDEX. Try putting a comma one in between the two closing parenthesis at the end.
=INDEX(COLLECT(.................), 1)
Answers
-
-
Thank you, I tried INDEX(COLLECT, but I get "Incorrect argument set".
This is the formula I tried: =INDEX(COLLECT({Date}, {Client}, [Column11]3, {Module}, [Column4]@row))
-
You need to specify which item from the list that the COLLECT function pulls together that you want to INDEX. Try putting a comma one in between the two closing parenthesis at the end.
=INDEX(COLLECT(.................), 1)
-
Thank you Paul! That did it, I don't really understand why, but it worked!
Thanks!
-
Basically the COLLECT pulls together an array or list from the first range based on the rest of the range/criteria sets.
Then we use the INDEX function to pull from that list. An array built on the back-end such as one built by the COLLECT function will always be in a vertical format, so we use a one in the "row to pull from" section of the INDEX function to tell it to pull the first value from the array.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!