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
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!