SUMIFS to generate a running cumulative (based on date)

Getting an "Unparseable" error with this formula. Trying to add all values from "Unit Price" for dates in the Invoice Date column that are earlier or equal to the current row's Invoice Date.

Text of formula is here to play with:

=sumifs([Unit Price]:[Unit Price]@row,[Orig vs Invoice Add]:[Orig vs Invoice Add],"Cumulative",[Invoice Date]:[Invoice Date],<=[Invoice Date]@row)

Best Answer

  • James Harris
    James Harris ✭✭✭
    Answer ✓

    Hi James. If you remove the "@row" from the first range, it should work.

    i.e. =sumifs([Unit Price]:[Unit Price],[Orig vs Invoice Add]:[Orig vs Invoice Add],"Cumulative",[Invoice Date]:[Invoice Date],<=[Invoice Date]@row)

    Thanks,

    James

    CTO, Smarter Business Processes

Answers

  • James Harris
    James Harris ✭✭✭
    Answer ✓

    Hi James. If you remove the "@row" from the first range, it should work.

    i.e. =sumifs([Unit Price]:[Unit Price],[Orig vs Invoice Add]:[Orig vs Invoice Add],"Cumulative",[Invoice Date]:[Invoice Date],<=[Invoice Date]@row)

    Thanks,

    James

    CTO, Smarter Business Processes

  • James, Thank you for your help! That was a rookie mistake...I was totally focused on a potential issue with how I was calling the "date" column...Did I need to use "Weeknumber", "Networkdays", etc.? Totally dumb mistake...and THANK YOU!

  • No worries at all - it's very easily done! :)

    CTO, Smarter Business Processes

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!