Finding if a date falls in a range in a referenced sheet

I am working in a separate sheet for calculating metrics. I want to count the number of items in a referenced date range in another sheet that meet certain year criteria. For example, I want to find the dates in the referenced range (a row defined as type DATE) that fall in calendar year 2023.
I am using:
=COUNTIF({P&M Requests Date Requested}, YEAR(@row)=2023)
I get an #UNPARSEABLE error.
P&M Requests Date Requested is a date column in another sheet. YEAR will not accept a range as an argument, so I am trying to grab each row (containing a full date) where the year is 2023.
Is there a way to do this that I am missing? I have been playing with variations on this formula for hours.
Thanks ahead of time for any help.
Emily
Best Answer
-
Try This:
=COUNTIFS({P&M Requests Date Requested}, IFERROR(YEAR(@cell), 0) = 2023)
Answers
-
Try This:
=COUNTIFS({P&M Requests Date Requested}, IFERROR(YEAR(@cell), 0) = 2023)
-
Thank you so much, works perfectly!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 509 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!