Solved

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

Posted on 2011-09-19
7
321 Views
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?
0
Comment
Question by:mainelytrusses
  • 4
  • 3
7 Comments
 
LVL 50

Expert Comment

by:barry houdini
Comment Utility
Which version of Excel are you using?

regards, barry
0
 

Author Comment

by:mainelytrusses
Comment Utility
2007
0
 
LVL 50

Expert Comment

by:barry houdini
Comment Utility
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)

=SUMIFS(B:B,A:A,">="&C2,A:A,"<="&D2)

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

=DATE(YEAR(TODAY()),CEILING(MONTH(TODAY()),1)-2,1)

and D2

=EDATE(C2,3)-1

for previous quarters put this formula in C3

=EDATE(C2,-3)

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

regards, barry
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
Comment Utility
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

=TODAY()

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
27316103.xlsx
0
 

Author Closing Comment

by:mainelytrusses
Comment Utility
I don't understand all that you've entered here, but it works, so I'll use it.  Thank you!
0
 
LVL 50

Expert Comment

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

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

barry
0
 

Author Comment

by:mainelytrusses
Comment Utility
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!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

744 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

14 Experts available now in Live!

Get 1:1 Help Now