Formula for Quarterly data pull

sebasp

New Member
Joined
Jun 25, 2019
Messages
4
Is there a relatively simplistic formula that I can use to sum the most recent quarterly data?
I have a template that gets updated each month. There is a field that reflects the most recent month - ie as of today, would still be pointing to March. So I would want to pull the 1st quarter's data looking at Jan-Mar.
Also - what would this look like if I wanted pull a rolling quarter data?
Thank you
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try the below:
Book1.xlsm
ABCDEF
2
3DateValue
401-Jan1Q16
501-Feb2Q215
601-Mar3Q324
701-Apr4Q433
801-May5
901-Jun6
1001-Jul7
1101-Aug8
1201-Sep9
1301-Oct10
1401-Nov11
1501-Dec12
Master Copy
Cell Formulas
RangeFormula
E4E4=SUMIFS($B$4:$B$15,$A$4:$A$15,">="&"1/1/23",$A$4:$A$15,"<="&"31/3/23")
E5E5=SUMIFS($B$4:$B$15,$A$4:$A$15,">="&"1/4/23",$A$4:$A$15,"<="&"30/6/23")
E6E6=SUMIFS($B$4:$B$15,$A$4:$A$15,">="&"1/7/23",$A$4:$A$15,"<="&"30/9/23")
E7E7=SUMIFS($B$4:$B$15,$A$4:$A$15,">="&"1/10/23",$A$4:$A$15,"<="&"31/12/23")
 
Upvote 0
Here is an alternative means to the end with Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Calculated Quarter" = Table.TransformColumns(Source,{{"Date", Date.QuarterOfYear, Int64.Type}}),
    #"Grouped Rows" = Table.Group(#"Calculated Quarter", {"Date"}, {{"Total by Qtr", each List.Sum([Value]), type number}})
in
    #"Grouped Rows"
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,666
Members
449,114
Latest member
aides

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top