how to sum data only from the previous (or the current) quarter?

Posted on 2011-09-19
Last Modified: 2012-05-12
In a related column, we need to track data based on a sum of points one fiscal quarter at a time, so I need to know a total from 1/1-3/31, a total from 4/1 - 6/30, a total from 7/1-9/30, and a total from 10/1 - 12/31.  What formula do I need to create that will only show that sum of points occuring during the most recent quarter?
Question by:mainelytrusses
  • 4
  • 3
LVL 50

Expert Comment

by:barry houdini
ID: 36562696
Which version of Excel are you using?

regards, barry

Author Comment

ID: 36562706
LVL 50

Expert Comment

by:barry houdini
ID: 36562796
The simplest way to sum  between 2 dates is to use SUMIFS in Excel 2007 - so if C2 and D2 contain the quarter start and end dates you can use this formula in E2 to sum between those dates (inclusive)


Now you can get the current quarter dates in C2 and D2 with these formulas in C2


and D2


for previous quarters put this formula in C3


and then copy that formula down the column as well as the D2 formula

regards, barry
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.

LVL 50

Accepted Solution

barry houdini earned 500 total points
ID: 36562874
See the attached sample with Dates from 1/1/2010 in column A and random amounts in column B.

I shifted the other formulas over 1 column and used this formula in H1


Now the quarters are based on H1 - you can experiment with changing H1 date to see that the quarters change as you expect, e.g. change the date in H1 to 3/3/2011 and you'll see the current quarter dates change accordingly, i.e. 1/1/2011 to 31/3/2011

regards, barry

Author Closing Comment

ID: 36562944
I don't understand all that you've entered here, but it works, so I'll use it.  Thank you!
LVL 50

Expert Comment

by:barry houdini
ID: 36563036
>I don't understand all that you've entered here

I'm quite happy to explain anything you don't understand - fire away!


Author Comment

ID: 36563068
I just don't clearly understand the functions entered under beginning and end dates.  For example, I want to have this work for many quarters to come.  I went to expand your range, and it didn't work.  I've now locked the =today() cell with dollar signs, and it still doesn't work when I drag it up.  I still need to dig further into what you have done.  Unfortunately, it's time to go, but you can explain how to better do this (to add future quarter dates) I'll look forward to looking into this more tomorrow.  Thank you!

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate how to use a 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

19 Experts available now in Live!

Get 1:1 Help Now