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