How do I add items within the last 12 months?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to add up numbers that only happened within the last 12 months from
the current date. I do have a column with the date I want to reference to.
 
Assuming that Column A contains the date, and Column B contains the
numbers, try...

=SUMIF(A1:A100,">="&TODAY()-365,B1:B100)

Hope this helps!
 
If the figures to conditionally add are in column B, and the dates are in A,
=SUMIF(A:A,">=" & TODAY()-365,B:B) would add up all the values from the past
366 days (including the current day). Use that anywhere except in columns A
or B (in A or B you'll get a circular reference).
 
I want to add up numbers that only happened within the last 12 months from
the current date. I do have a column with the date I want to reference to.

If your column of dates is named "dates" and your column of numbers is named
"numbers" then:

A1: StartDate of period of interest
A2: EndDate of period of interest

=SUMIF(dates,">="&A1,numbers) - SUMIF(dates,">"&A2,numbers)

should do it.


--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top