Add together figures for Year-To-Date (with criteria)

ellison

Active Member
Joined
Aug 1, 2012
Messages
356
Office Version
  1. 365
Platform
  1. Windows
Hi, we are trying to add together figures (column I in the table) for Year-To-Date and I'm stumped (easy to do!).

We have managed to add together the figures (with criteria where it IS to be counted as per Column H) on the table by Year & Quarter (Column J ) & just by Year (Column K).

But can't figure out how to add them by Year to Date (n)

(By the way, the way they want them for Year To Date is Q1, then Q1&Q2, then Q1&Q2&Q3 etc)

Hope the table makes this a little bit clearer....



sum-by-year-to-date-with-criteria-01-question.xlsx
ABCDEFGHIJKLM
1DateMonthQuarterYearYear / Qr QuarterYTD QR reportingTo Be CountedAmtSubtotal Per Year & QuarterSubtotal Per YearSubtotal Per Year to Date (going in quarters)Expected Figures
213/02/20242120242024 / QR 1Q1Q1Yes1,2352,0353,6102,035
315/03/20243120242024 / QR 1Q1Q1Yes8002,0353,6102,035
413/07/20247320242024 / QR 3Q3Q1-Q2-Q3Yes9751,5753,6103,610
513/08/20248320242024 / QR 3Q3Q1-Q2-Q3Yes6001,5753,6103,610
615/06/20246220242024 / QR 2Q2Q1-Q2No55003,6102,035
728/03/20113120112011 / QR 1Q1Q1No1,900000
811/05/20125220122012 / QR 2Q2Q1-Q2Yes2,5002,5003,6502,500
931/10/201210420122012 / QR 4Q4Q1-Q2-Q3-Q4Yes1,1501,1503,6503,650
1021/05/20135220132013 / QR 2Q2Q1-Q2Yes750750750750
1115/03/20133120132013 / QR 1Q1Q1No62507500
1205/03/20143120142014 / QR 1Q1Q1Yes2,0004,1006,9004,100
1325/02/20142120142014 / QR 1Q1Q1Yes2,1004,1006,9004,100
1404/08/20148320142014 / QR 3Q3Q1-Q2-Q3Yes2,8002,8006,9006,900
1519/03/20153120152015 / QR 1Q1Q1No3,000000
Sheet1
Cell Formulas
RangeFormula
B2:B15B2=MONTH(A2)
C2:C15C2=ROUNDUP(MONTH(A2)/3,0)
D2:D15D2=YEAR(A2)
E2:E15E2=CONCATENATE(D2," / QR ",C2)
F2:F15F2="Q"&C2
G2:G15G2=IF(C2<2,"Q1",IF(C2<3,"Q1-Q2",IF(C2<4,"Q1-Q2-Q3",IF(C2<5,"Q1-Q2-Q3-Q4","error"))))
J2:J15J2=SUMIFS(I:I,D:D,D2,C:C,C2,H:H,"Yes")
K2:K15K2=SUMIFS(I:I,D:D,D2,H:H,"Yes")
M2,M12:M13,M8,M10M2=+J2
M3M3=+J2
M4M4=+J4+J2
M5M5=+J4+J2
M6M6=+J2
M9M9=+J8+J9
M14M14=+J14+J13
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
The following formula returns the expected results for the posted dataset:
Excel Formula:
=SUMIFS(I:I,C:C,"<="&C2,D:D,D2,H:H,"Yes")
 
Upvote 0
Solution
Absolutely amazing .... HUGE thanks (y) 💣 💪

(marked up as solution)
 
Upvote 0

Forum statistics

Threads
1,223,856
Messages
6,175,029
Members
452,606
Latest member
jkondrat14

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