Dynamic Column Reference

Hi!

Lets say I have a basic formula like this in a "budget" column:

=SUM([Week 1]@row:[Week 10]@row)

And I also have a cell in a helper column that includes this formula:

=WEEKNUMBER(TODAY())

Is there a way of [Week 10] changing to [Week X] based on the number in the week number cell? I have a column for every week of the year already in place. So if the weeknumber cell reads 28 for example, I'd want the formula to give the result of this, effective, equation:

=SUM([Week 1]@row:[Week 28]@row)

The way I tried to do it was like this, but I could be going in the complete wrong direction.

=SUM(INDEX([Week 1]@row:[Week 52]@row, 1, 1):INDEX([Week 1]@row:[Week 52]@row, 1, [Current Week]2))

But it just gives an unparseable error.

Thanks in advance!

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!