Formula in Help Section Not Working
Hello,
I copied the formula that's given in the help section for the Year Function for selecting rows with the current year in a SUMIF formula and changed it to use my data, and I'm getting the INVALID DATA TYPE error. My date column is set as a date, and my column to sum is a number. What am I missing?
Here's the formula: =SUMIF([Sold Date]:[Sold Date], YEAR(@cell) = YEAR(TODAY()), [Units Sold]:[Units Sold])
And this is the help page: https://help.smartsheet.com/function/year
Thanks!
Answers
-
I think this is just a minor syntax issue. Try this. I added parentheses around the equation part, containing it as a single criteria:
=SUMIF([Sold Date]:[Sold Date], (YEAR(@cell) = YEAR(TODAY())), [Units Sold]:[Units Sold])
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thanks Jeff! I tried what you did and still no change. The strange thing is that one set of columns (I'm doing this with 2 sets of columns in my sheet, one set for Invoiced and one set for Paid) just started working when I went back into the sheet.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!