SUM and INDEX combination formula


I have this formula that works in Excel, but when I try to rebuild it in Smartsheet, I'm getting an error that it's unparseable. How can I do this in Smartsheet:


I've gotten here in Smartsheet, but it doesn't work:

=SUM(January@row:INDEX(January@row:December@row, 1, $January$1))

I would like to add up the values in the purple row, starting in January and moving to the right as many boxes as are designated in the cell that is highlighted in blue (in this example, it should give me the sum of January, February and March).

Thank you for any ideas!

Best Answer

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    Ok. And are you able to possibly relocate the "3" into a different cell?

    The easiest way to accomplish what you need is to utilize that top row. Basically you would put the month number in each column in the gray row (you can change text color to match cell fill color to essentially make the cells look blank). Then you would use a formula that looks like this:

    =SUMIFS(January@row:December@row, January$1:December$1, @cell <= 3)

    You would replace the 3 with a cell reference to wherever you are able to relocate it.


Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!