I'm trying to find the number of cells that meet a criterion within a specific date window.

Options

=COUNTIFS({Access Request Range 5},>=(2021, 7,1),{Access Request Range 5}, <=(2021,9,30), {Access Request Range 2},"Approved")

Best Answer

  • Maxwony
    Maxwony
    Answer ✓
    Options

    I found it. there was a ")" missing.

    =COUNTIFS({Access Request Range 5}, AND(@cell >= DATE(2021, 7, 1), @cell <= DATE(2021, 9, 30)), {Access Request Range 2}, "Approved")

Answers

  • Jason Duryea
    Jason Duryea ✭✭✭✭✭✭
    Options

    Try this...

    =COUNTIFS({Access Request Range 5}, AND(@cell >= DATE(2021, 7, 1), @cell <= DATE(2021, 9, 30), {Access Request Range 2}, "Approved")

  • Maxwony
    Options

    I now have an error for the data type

    I'm referencing a separate sheet. Trying to get a count of the statuses marked "Approved" within the 3rd quarter of the year based on their date submitted (7/01/2021 to 9/30/2021)

  • Maxwony
    Maxwony
    Answer ✓
    Options

    I found it. there was a ")" missing.

    =COUNTIFS({Access Request Range 5}, AND(@cell >= DATE(2021, 7, 1), @cell <= DATE(2021, 9, 30)), {Access Request Range 2}, "Approved")

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!