Trying to use sumif with dates

iredai50051
iredai50051 ✭✭
edited 12/09/19 in Formulas and Functions

I am trying to sum values from Study column which only have a value in start date column less than today's date.

=SUMIF([start date]1:[start date]9, "<"&today, [Study]1:[Study]9)

the result is #UNPARSEABLE and I don't know why. Does anybody have advice?

ex:

start dateΒ Β  Study sum

11/1/17Β Β Β Β Β  12

11/1/18Β Β Β Β Β  3Β Β Β Β 

Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β  12

Β 

Tags:

Comments

  • RebSchr
    RebSchr ✭✭✭✭✭

    I recently did this inΒ  one of my sheets.Β 

    The first one will give you the total for anything less than today.Β  The second one will give you anything greater than the day.Β  I also know that you can put specific parameters on the dates - meaning if I wanted to look at the current date plus the last 3 days, you can add -3 in between the parenthesesΒ 

    =SUMIF([Start Date]1:[Start Date]9, <=TODAY(), Study1:Study9)

    or

    =SUMIF([Start Date]1:[Start Date]9, >=TODAY(), Study1:Study9)

    Using -3:

    =SUMIF([Start Date]1:[Start Date]9, >=TODAY(-3), Study1:Study9)

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!