Sum column based on date range

rongil20

New Member
Joined
Jun 23, 2015
Messages
12
Hi, not sure how to best explain what I am after. Happy to do this via VBA or regular formulas.

Essentially what I am after is to sum my amounts by date depending if that number falls within the date range

This is column F in the minisheet.

For example, on the 4th Jan 2022, cell F4. I will have an amount of 231,193,853.93 because it is including the amounts in cells C2 to C5.

I hope that makes sense

Cell Formulas
RangeFormula
F2F2=$C$2
F3F3=$C$2+$C$3
F4F4=$C$2+$C$3+$C$4
F5F5=$C$2+$C$3+$C$4+$C$5
F6F6=$C$2+$C$3+$C$4+$C$5+$C$6
F7F7=$C$2+$C$3+$C$4+$C$5+$C$6+$C$7
F8:F33F8=$C$2+$C$3+$C$4+$C$5+$C$6+$C$7+$C$8
E9:E39E9=E8+1
F34F34=$C$3+$C$4+$C$5+$C$6+C7+C8
F35F35=C4+C5+C6+C7+C8
F36F36=C5+C6+C7+C8
F37F37=C6+C7+C8
F38F38=C7+C8
F39F39=C8
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
In F2, fill down to the end.
Excel Formula:
=SUMIFS($C$2:$C$8,$A$2:$A$8,"<="&E2,$B$2:$B$8,">="&E2)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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