COUNTIFS Formula Help
As one of the pieces of logic in a formula I'm attempting, I want a count within a range (column) if the date (formatted as MM/DD/YY) falls within the year 2017. What do I need to change in the formula as shown in my screen shot?
Comments
-
Hi Tyler,
=COUNTIF({NEW ACE MASTER LIST Range 9}, YEAR(@cell) = 2017) will get you out of trouble.
-
Thanks for the reply, Chris. I've seen that function before in my research, but I still get the #UNPARSEABLE error. See my updated screenshot below according to your suggesting to see if I missed any spaces, commas, etc.
-
Hi Tyler. My pleasure.
Your formula looks correct. Could you please confirm that your source range inside the { } is definitely a date?
-
Yes, I've double-checked that the data range is for sure a date. Not only that, I made sure there are dates within 2017 for the formula to count. I'm stumped. (The error is actually #INVALID DATA TYPE. In my previous comment, I said it was #UNSPARSEABLE.)
-
Oh OK, that changes things. Can you also confirm that the column your formula lives in is also a date format?
-
I tried your suggestion of changing the formula column to a DATE type of column, but the error is #INVALID REF now (not sure why the error type keeps changing).
-
The invalid Ref error states that the existing range doesn't exist. I would double check your reference to the other sheet, and even recreate it to see if that solves your problem.
https://help.smartsheet.com/articles/2476176-formula-error-messages#invalidref
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!