INDEX COLLECT line number
Hi guys!
I have problem with INDEX/COLLECT. I want the line index to be equivalent to the line number. I tried @row but it doesn't work. If I manually set the number ''1'', when I drag my formula down, the number ''1'' doesn't change for the next line.
Best Answer
-
Thanks @L@123 it works :D
Answers
-
What are you trying to accomplish? I'm not sure that Index and Collect would play well together. Collect is designed to give multiple values, Index is expected to bring back a single value. Can you give more information on what you're trying to calculate?
-
Hello,
I have, in a second sheet, a list of projects with columns to be checked off as needed (see attached). What I'm trying to do with my INDEX formula is to go get only the projects that have column D-A checked and copy them into my first sheet.
-
Index(collect()) is a great formula, and one I use very often. The trick to it is you need 2 formulas. 1 for the first cell, the second for the rest.
First cell:
=index(collect(),1)
Second Cell:
=index(collect(),1+count(FirstCell$1:FirstCell1))
Then drag down. Usually i'll wrap the second in an iferror() so I can drag down as far as I want for future potential values.
=iferror(index(collect(),1+count(FirstCell$1:FirstCell1)),"")
-
Thanks @L@123 it works :D
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!