Invalid Data Type Error
Hi All,
I created a metric sheet for my Dashboard with a section to count how many store openings I will have in 2024. The formula is sourcing my Summary Sheet.
I entered the following formula into my cell:
=COUNTIF({Summary Sheet Range 2}, YEAR(@cell) = 2024)
Any ideas on why it's throwing an invalid data type error? Both columns are Text/Number.
Thanks for your help!
Maddy
Thanks,
Maddy
Best Answer
-
The 2024 value in your example isn't a date format so you shouldn't need the Year() part in your formula. Remove that and you should be good to go
=COUNTIF({Summary Sheet Range 2}, @cell = 2024)
Answers
-
The 2024 value in your example isn't a date format so you shouldn't need the Year() part in your formula. Remove that and you should be good to go
=COUNTIF({Summary Sheet Range 2}, @cell = 2024)
-
You're awesome! It worked. Thanks so much for the quick response!😀
Thanks,
Maddy
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.2K Get Help
- 360 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!