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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!