How to count # of item within a date range

All,

Can you help with this? I am trying to count the number of product launches we have planned by the quarter. I have used COUNTIFS to count the total of launches for the year, but need to now add and additional criteria of within a date range. Would that still be the COUNTIFS formula?

Tags:

Best Answer

  • Amber Eakin
    Amber Eakin ✭✭✭✭✭✭
    Answer ✓

    Hi @Ryan Holguin - Okay, I understand. Based on the references you have set up, here's what I'd try. Let me know if this works!

    =COUNTIFS({Product Launch Count}, "Product Line Extension", {Launch Date}, AND(@cell >=DATE(2023,1,1), @cell <=DATE(2023,3,31)))

    Amber Eakin, MSLS, M.Ed.

    Adult Education Specialist | Process Improvement Enthusiast

Answers

  • Amber Eakin
    Amber Eakin ✭✭✭✭✭✭

    Hi, @Ryan Holguin - Yes, it would be COUNTIFS. You could add something like [Date Column]:[Date Column], AND(@cell >= DATE(2023, 1, 1), @cell <= DATE(2023, 1, 31))

    Let me know if that works!

    Amber Eakin, MSLS, M.Ed.

    Adult Education Specialist | Process Improvement Enthusiast

  • Ryan Holguin
    Ryan Holguin ✭✭✭✭✭

    Hello @Amber Eakin - Thanks for responding! I am trying to figure out how to use that in my formula. Here's what I have:

    =COUNTIFS({Product Launch Count}, "Product Line Extension", AND({Launch Date}>=DATE(2023,01,01){Launch Date}<=DATE(2023,03,31))

    In other words, I want to see how many "Product Line Extension" we had in Q1. How would I do that?

  • Amber Eakin
    Amber Eakin ✭✭✭✭✭✭
    Answer ✓

    Hi @Ryan Holguin - Okay, I understand. Based on the references you have set up, here's what I'd try. Let me know if this works!

    =COUNTIFS({Product Launch Count}, "Product Line Extension", {Launch Date}, AND(@cell >=DATE(2023,1,1), @cell <=DATE(2023,3,31)))

    Amber Eakin, MSLS, M.Ed.

    Adult Education Specialist | Process Improvement Enthusiast

  • Ryan Holguin
    Ryan Holguin ✭✭✭✭✭

    @Amber Eakin - Awesome, it worked! Thanks!

  • Ryan Holguin
    Ryan Holguin ✭✭✭✭✭

    @Amber Eakin - I am trying to add another criteria to this function. I want to also count another type of Product Launch in this. Is that possible? So, I want to add another product launch to count. But I don't want it to be both/and, but instead an either/or.


    What would a function like that look like?

  • Amber Eakin
    Amber Eakin ✭✭✭✭✭✭

    Hi @Ryan Holguin - It would look something like this. You'll need to set up whatever the name actually is, but this is the gist.

    =COUNTIFS({Product Launch Count}, OR(@cell = "Product Line Extension", @cell = "OTHER THING"), {Launch Date}, AND(@cell >=DATE(2023,1,1), @cell <=DATE(2023,3,31)))

    Amber Eakin, MSLS, M.Ed.

    Adult Education Specialist | Process Improvement Enthusiast

  • Ryan Holguin
    Ryan Holguin ✭✭✭✭✭

    @Amber Eakin - That's great. Thank you!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!