Solved

# add data within the rolling last 365 days

Posted on 2011-09-19
319 Views
I want to sum a column if the data in that column occurred within the past 365 day period, based on a date column
0
Question by:mainelytrusses
• 2
• 2

LVL 50

Expert Comment

ID: 36561291
Try SUMIF, e.g. with data in column A

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

regards, barry
0

LVL 33

Expert Comment

ID: 36561305
Try this formula:

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

jppinto
SUMPRODUCT-LAST-YEAR.xlsx
0

LVL 50

Accepted Solution

barry houdini earned 250 total points
ID: 36561311
Sorry. you need a sin range - with dates in A and amounts in B

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

regards, barry
0

Author Closing Comment

ID: 36561402
0

LVL 33

Expert Comment

ID: 36561450
Didn't you like my formula?!? Wasn't it working?!?
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.