Solved

add data within the rolling last 365 days

Posted on 2011-09-19
5
318 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
Comment Utility
Try SUMIF, e.g. with data in column A

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

regards, barry
0
 
LVL 33

Expert Comment

by:jppinto
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you for your prompt answer.
0
 
LVL 33

Expert Comment

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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
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 how to use longer labels with horizontal bar charts instead of the vertical column chart.

728 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

12 Experts available now in Live!

Get 1:1 Help Now