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?
Best 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
-
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
-
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?
-
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
-
@Amber Eakin - Awesome, it worked! Thanks!
-
@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?
-
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
-
@Amber Eakin - That's great. Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!