Solved

add data within the rolling last 365 days

Posted on 2011-09-19
5
319 Views
Last Modified: 2012-05-12
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
Comment
Question by:mainelytrusses
  • 2
  • 2
5 Comments
 
LVL 50

Expert Comment

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

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

regards, barry
0
 
LVL 33

Expert Comment

by:jppinto
ID: 36561305
Try this formula:

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

Please check the attached example.

jppinto
SUMPRODUCT-LAST-YEAR.xlsx
0
 
LVL 50

Accepted Solution

by:
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

by:mainelytrusses
ID: 36561402
Thank you for your prompt answer.
0
 
LVL 33

Expert Comment

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now