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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!