How to use Index(Collect(....
I'm trying to build a summary sheet that will pull values from a task list.
How do I have the values in row 1 of the summary sheet reference the corresponding values under the 12345 parent.
I think that INDEX and COLLECT are the tools I need but I don't know where to start.
Best Answer
-
You will first need a helper column on the source sheet that brings the 12345 onto every row.
=IF(COUNT(ANCESTORS([Part Number]@row)) = 0, [Part Number]@row, INDEX(ANCESTORS([Part Number]@row), 1))
Then you INDEX/COLLECT would be along the lines of
=INDEX(COLLECT({Checkbox Column}, {Helper Column}, @cell = [Part Number]@row, {Part Number Column}, @cell = "Drawings"), 1)
Answers
-
You will first need a helper column on the source sheet that brings the 12345 onto every row.
=IF(COUNT(ANCESTORS([Part Number]@row)) = 0, [Part Number]@row, INDEX(ANCESTORS([Part Number]@row), 1))
Then you INDEX/COLLECT would be along the lines of
=INDEX(COLLECT({Checkbox Column}, {Helper Column}, @cell = [Part Number]@row, {Part Number Column}, @cell = "Drawings"), 1)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!