Link to home
Start Free TrialLog in
Avatar of mainelytrusses
mainelytrusses

asked on

add data within the rolling last 365 days

I want to sum a column if the data in that column occurred within the past 365 day period, based on a date column
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Try SUMIF, e.g. with data in column A

=SUMIF(A:A,">="&TODAY()-365)

regards, barry
Try this formula:

=SUMPRODUCT(((A1:A5)>TODAY()-365)*(B1:B5))

Please check the attached example.

jppinto
SUMPRODUCT-LAST-YEAR.xlsx
ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mainelytrusses
mainelytrusses

ASKER

Thank you for your prompt answer.
Didn't you like my formula?!? Wasn't it working?!?