Sum based on Date

rhyse

New Member
Joined
Apr 11, 2018
Messages
8
Hi
Need some help here

I want to be able to find the sum of November 1 to say the 12th day of the month (will automatically update based on what day it is today)

It should total $406,489.97

And then say tomorrow when I check it should total to $432,186.95

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<colgroup><col style="width: 100px"><col width="109"></colgroup><tbody>[TR]
[TD="align: center"]Month[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=D9D9D9]#D9D9D9[/URL] , align: center"]November 2017[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]$68,984.28[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]$17,715.00[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]$2,380.00[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]$0.00[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]$0.00[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]$29,774.86[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]$149,187.94[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]$9,998.00[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]$9,384.05[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]$119,065.84[/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD="align: center"]$0.00[/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD="align: center"]$0.00[/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD="align: center"]$25,696.98[/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD="align: center"]$45,340.68[/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD="align: center"]$6,681.05[/TD]
[/TR]
[TR]
[TD="align: center"]16[/TD]
[TD="align: center"]$4,838.45[/TD]
[/TR]
[TR]
[TD="align: center"]17[/TD]
[TD="align: center"]$40,386.99[/TD]
[/TR]
[TR]
[TD="align: center"]18[/TD]
[TD="align: center"]$0.00[/TD]
[/TR]
[TR]
[TD="align: center"]19[/TD]
[TD="align: center"]$0.00[/TD]
[/TR]
[TR]
[TD="align: center"]20[/TD]
[TD="align: center"]$146,016.49[/TD]
[/TR]
[TR]
[TD="align: center"]21[/TD]
[TD="align: center"]$202,543.70[/TD]
[/TR]
[TR]
[TD="align: center"]22[/TD]
[TD="align: center"]$1,600.00[/TD]
[/TR]
[TR]
[TD="align: center"]23[/TD]
[TD="align: center"]$0.00[/TD]
[/TR]
[TR]
[TD="align: center"]24[/TD]
[TD="align: center"]$0.00[/TD]
[/TR]
[TR]
[TD="align: center"]25[/TD]
[TD="align: center"]$0.00[/TD]
[/TR]
[TR]
[TD="align: center"]26[/TD]
[TD="align: center"]$0.00[/TD]
[/TR]
[TR]
[TD="align: center"]27[/TD]
[TD="align: center"]$50,823.58[/TD]
[/TR]
[TR]
[TD="align: center"]28[/TD]
[TD="align: center"]$24,879.85[/TD]
[/TR]
[TR]
[TD="align: center"]29[/TD]
[TD="align: center"]$12,747.39[/TD]
[/TR]
[TR]
[TD="align: center"]30[/TD]
[TD="align: center"]$24,600.07[/TD]
[/TR]
[TR]
[TD="align: center"]31[/TD]
[TD="align: center"]-[/TD]
[/TR]
[TR]
[TD="align: center"]Deposits Total [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=5ABC89]#5ABC89[/URL] , align: center"][/TD]
[/TR]
</tbody>[/TABLE]


Any help would be much appreciated have been struggling with this for a while!

Thanks!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi rhyse

look into the SUMIF() Function. It states that you want to sum a range if a certain criteria (date) is met. Hope this helps.
 
Upvote 0
For example if today is 11 I want it to calculate the sum of the first 11 cells in column b
if today is the the 12 i want it to calculate the sum of the first 12 cells in column b
and so on
 
Upvote 0
Hi again,

Since you're using Today's date as the criteria, I've changed your sample to April of 2018:


Excel 2010
ABCD
1DayApr-18Result
21$68,984.28$406,489.97
32$17,715.00
43$2,380.00
54$0.00
65$0.00
76$29,774.86
87$149,187.94
98$9,998.00
109$9,384.05
1110$119,065.84
1211$0.00
1312$0.00
1413$25,696.98
1514$45,340.68
1615$6,681.05
1716$4,838.45
1817$40,386.99
1918$0.00
2019$0.00
2120$146,016.49
2221$202,543.70
2322$1,600.00
2423$0.00
2524$0.00
2625$0.00
2726$0.00
2827$50,823.58
2928$24,879.85
3029$12,747.39
3130$24,600.07
Sheet6
Cell Formulas
RangeFormula
D2=SUMIF(A2:A31,"<="&DAY(TODAY()),B2:B31)
 
Upvote 0

Similar threads

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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