# Sum Ifs in a date range

Options
✭✭

Trying to calculate the sum of Range 4 only in between the dates below. I'm going to be calculating by quarter, so if there is a better formula for Q1, Q2, etc., please let me know.

=SUMIFS({Construction Range 4}, {Construction Range 5}, "Macy", {Construction Range 3}, >=DATE(2024, 1, 1), {Construction Range 3}, <=DATE(2024, 3, 31)))

Thank you!

• ✭✭✭✭✭✭
edited 12/23/23 Answer ✓
Options

Hi @aecross

You can use a SUMIFS formula in a structure like this.

SUMIFS(Value:Value, Date:Date, INT(MONTH(@cell) / 4) + 1 = 1, Date:Date, YEAR(@cell) = "2024")

The " INT(MONTH(@cell) / 4) + 1" corresponds to the quarter number.

The formula uses range references like Value:Value as the formulas are in the Sheet Summary fields, but you can use your cross-sheet reference like {Construction Range 4} instead.

You can add additional conditions after the "2024" such as "{Construction Range 5}, "Macy".

• ✭✭✭✭✭✭
edited 12/23/23 Answer ✓
Options

Hi @aecross

You can use a SUMIFS formula in a structure like this.

SUMIFS(Value:Value, Date:Date, INT(MONTH(@cell) / 4) + 1 = 1, Date:Date, YEAR(@cell) = "2024")

The " INT(MONTH(@cell) / 4) + 1" corresponds to the quarter number.

The formula uses range references like Value:Value as the formulas are in the Sheet Summary fields, but you can use your cross-sheet reference like {Construction Range 4} instead.

You can add additional conditions after the "2024" such as "{Construction Range 5}, "Macy".

• ✭✭
Options

Thank you, @jmyzk_cloudsmart_jp! This looks to be working!

• ✭✭✭✭✭✭
Options

Happy to help!😁, @aecross.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!