How do I use Cell reference in a formula when using Index?

I have a simple table that has the following columns (along with other columns),
ZZZ YYY
10 15
and I would like to replace the ZZZ and YYY in the following formula
=INDEX([Thing1]ZZZ:[Thing2]YYY, 1, 1)
With the data from the columns above so that the resulting formula would be:
=INDEX([Thing1]10:[Thing2]15, 1, 1)
Best Answer
-
TO do that, you will need two helper columns. The first will be an auto-number column (called "Auto" in this example) with no special formatting. The second will be a text/number column (called "Row" in this example) with the following column formula:
=MATCH(Auto@row, Auto:Auto, 0)
Then your INDEX function would change to:
=INDEX(COLLECT([Week Starting]:[Week Starting], Row:Row, @cell >= [Start Row]1), 6)
Answers
-
Capitalg
Any chance you can explain it a little better or give us the actual cell / column names? Not sure what you are trying to accomplish, my friend! Would love to assist -
Are you able to provide some screenshots for context?
-
Sorry, I am new to Smartsheet. I am trying to use the Start Row and End Row columns on row 1 (Start Row = 10, End Row = 15) and use that in the formula in the Date column. I want the INDEX formula to be dynamic and use the Start Row and End Row values instead of hard coding the 10 and 15 as shown below.
=INDEX(WeekStarting10:[Actual Percent]15, 6, 1)
Thanks for your help.
-
TO do that, you will need two helper columns. The first will be an auto-number column (called "Auto" in this example) with no special formatting. The second will be a text/number column (called "Row" in this example) with the following column formula:
=MATCH(Auto@row, Auto:Auto, 0)
Then your INDEX function would change to:
=INDEX(COLLECT([Week Starting]:[Week Starting], Row:Row, @cell >= [Start Row]1), 6)
-
Thank you for your assistance. I set that up and am getting an #UNPARSEABLE error.
Any addition help is appreciated.
-
Thank you for all of your help. I misspelled WeekStart - I had a space in there. This works great.
Help Article Resources
Categories
Check out the Formula Handbook template!