How to use index collect?
Hi, I'm trying to write a formula that will look at a particular column (in this case the "extrusion" column) and return the first entry that has a check in the "cycle count is due column". My current formula is below and comes up unparseable.
=INDEX(COLLECT({Metal- Shop Floor Inventory Range 1}, {Metal- Shop Floor Inventory Range 2}, 1)))
Best Answer
-
Hey @Brandon Morales
To verify, Range 1 = Extrusion column and your Range 2 = Cycle Count column, correct? This would be the correct syntax for the formula.
You completed the COLLECT of the formula above, however you did not complete the INDEX portion of the formula. You're missing the [row index], and this will also allow you to grab the first instance that the COLLECT finds. You also have an extra parenthesis.
=INDEX(COLLECT({Metal- Shop Floor Inventory Range 1}, {Metal- Shop Floor Inventory Range 2}, 1),1)
Does this work for you?
Kelly
PS - As a good practice you can name your cross sheet references before inserting them into your sheet. Simply replace the generic Range # with your column name and you have both the sheet and column identified for future reference.
Answers
-
Hey @Brandon Morales
To verify, Range 1 = Extrusion column and your Range 2 = Cycle Count column, correct? This would be the correct syntax for the formula.
You completed the COLLECT of the formula above, however you did not complete the INDEX portion of the formula. You're missing the [row index], and this will also allow you to grab the first instance that the COLLECT finds. You also have an extra parenthesis.
=INDEX(COLLECT({Metal- Shop Floor Inventory Range 1}, {Metal- Shop Floor Inventory Range 2}, 1),1)
Does this work for you?
Kelly
PS - As a good practice you can name your cross sheet references before inserting them into your sheet. Simply replace the generic Range # with your column name and you have both the sheet and column identified for future reference.
-
Eureka!! thanks so much for the help. Also, thanks for best practice tip with naming my references- its a habit I need to work on. Thank you again.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 462 Global Discussions
- 155 Industry Talk
- 506 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 517 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!