Solved

add data within the rolling last 365 days

Posted on 2011-09-19
5
320 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

827 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