How to count # of item within a date range

Options
✭✭✭✭

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:

• ✭✭✭✭✭✭
Options

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

• ✭✭✭✭✭✭
Options

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

• ✭✭✭✭
Options

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?

• ✭✭✭✭✭✭
Options

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

• ✭✭✭✭
Options

@Amber Eakin - Awesome, it worked! Thanks!

• ✭✭✭✭
Options

@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?

• ✭✭✭✭✭✭
Options

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

• ✭✭✭✭
Options

@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!