# Smartsheet SUMIF

edited 06/23/22

Hello Smartsheet Community,

I just want to have a Sum of the values based on the day range and week number range in the smartsheet, i tried with SUMIF in smartsheet it was not possible. here i am posting an example for your understanding, which i have done in excel.

I have a german pc, so SUMIF is showing as SUMWENN in the following excel; this formula i used in excel

--->> Now i want to do same in smartsheet

can any leads here which formula should i use in smarstheet ?

Thanks

gprudhvi

• ✭✭✭✭✭✭

Try this:

=SUMIFS(Orderlines:Orderlines, Date:Date, @cell = Date@row)

=SUMIFS(Orderlines:Orderlines, Date:Date, AND(IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER(Date@row), IFERROR(YEAR(@cell), 0) = YEAR(Date@row)))

• ✭✭✭✭✭✭

Try this:

=SUMIFS(Orderlines:Orderlines, Date:Date, @cell = Date@row)

=SUMIFS(Orderlines:Orderlines, Date:Date, AND(IFERROR(WEEKNUMBER(@cell), 0) = WEEKNUMBER(Date@row), IFERROR(YEAR(@cell), 0) = YEAR(Date@row)))

• Hi Paul,

Cheers

gprudhvi

• ✭✭✭✭✭✭

Happy to help. 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!