Count Number of Cells within 2021 or specified Year
Hey Folks,
This comes up alot and I tried my best. I am building a metrics sheet for a dashboard, and need to reference the ship date column on my other sheet. I need to count the number of ship dates in 2021 YTD (so Jan 1 - TODAY). So I can count total shipped YTD. Here is what I got, getting Unparseable. PM Backlog Range 1 is the shipping date column referenced from my other sheet.
=COUNTIFS({PM Backlog Range 1}, IFERROR(YEAR({PM Backlog Range 1}, 0)=year(TODAY))))
Best Answer
-
I think that you are just a little off, but I think this one should work....
=COUNTIF({PM Backlog Range 1}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY()))
Answers
-
I think that you are just a little off, but I think this one should work....
=COUNTIF({PM Backlog Range 1}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY()))
-
THANK YOU
-
What if I want to Count YTD? It is also counting stuff in November that hasn't shipped yet.
-
you could add another condition I believe something like...
=COUNTIFS({PM Backlog Range 1}, IFERROR(YEAR(@cell), 0) = YEAR(TODAY()),{PM Backlog Range 1},IFERROR(Month(@cell), 0) <= MONTH(TODAY()))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!