SUM all payments made in the last year
Hi,
I'm trying to add up all the payments in a column that were made in the last 365 days from the current date. The date the payment was made is in a second column, formatted as a date column. I have written this formula:
=SUMIF([Payment 1 Paid Date]:[Payment 1 Paid Date], TODAY(@cell) >= TODAY(-365), [Payment 1]:[Payment 1])
Its returning INVALID DATA TYPE, so I'm guessing I'm using the wrong functions in the criterion - TODAY(@cell) >= TODAY(-365)
Any suggestions?
tx
DJ
Best Answer
-
I think you're very close. TODAY() is a function in Smartsheet with no parameters. It simply is called to return the current date. I think what you're looking for is just:
=SUMIF([Payment 1 Paid Date]:[Payment 1 Paid Date], >=(TODAY() - 365), [Payment 1]:[Payment 1])
Answers
-
I think you're very close. TODAY() is a function in Smartsheet with no parameters. It simply is called to return the current date. I think what you're looking for is just:
=SUMIF([Payment 1 Paid Date]:[Payment 1 Paid Date], >=(TODAY() - 365), [Payment 1]:[Payment 1])
-
Thank you @David Tutwiler ! Works great!
-
Great to hear!
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!