Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

What is wrong with this COUNTIFS formula?

=COUNTIFS({Consumer Alerts Sign-up Form Date}, >=DATE(IF(MONTH(TODAY())>=7, YEAR(TODAY()), YEAR(TODAY())-1), 7, 1), {Consumer Alerts Sign-up Form Date}, <=DATE(IF(MONTH(TODAY())>=7, YEAR(TODAY())+1, YEAR(TODAY())), 7, 31), {Consumer Alerts Sign-up Form Range 1}, @cell = "")

I am trying to create a COUNTIFS formula for each month that updates automatically each year. Our fiscal year begins in July and ends in June. It is calculating all sign-ups for the fiscal year instead of only counting the number of new sign-ups for the month of July. Once I figure out how to get this to work I'll update the formula for each of the remaining months. I hope that makes sense.

Any help would be greatly appreciated.

Thank you!

Best Answer

  • Community Champion
    Answer ✓

    @Christina S.

    The year calculation in your formula should be the same for both criteria:

    =COUNTIFS({Consumer Alerts Sign-up Form Date}, >=DATE(IF(MONTH(TODAY())>=7, YEAR(TODAY()), YEAR(TODAY())-1), 7, 1), {Consumer Alerts Sign-up Form Date}, <=DATE(IF(MONTH(TODAY())>=7, YEAR(TODAY()), YEAR(TODAY())-1), 7, 31), {Consumer Alerts Sign-up Form Range 1}, @cell = "")

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions