Sum of values INCLUDING Start & End Dates

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
959
Office Version
  1. 2007
Platform
  1. Windows
B2:B9999=Date & C2:C9999=Values
E2:E9999=Start Date & F2:F9999=End Date
Output required G2:G9999 as total of C column INCLUDING Start Date’s Value & End Date’s Value.

How to accomplish?
I am using Excel 2007.
Thanks in advance.

Sheet1

BCDEFG
21-Jan-201610 1-Feb-201629-Feb-2016110
311-Jan-201620 1-Jan-201614-Feb-2016130
425-Jan-201650
51-Feb-201620
614-Feb-201630
729-Feb-201660

<colgroup><col style="FONT-WEIGHT: bold; WIDTH: 30px"><col style="WIDTH: 82px"><col style="WIDTH: 64px"><col style="WIDTH: 64px"><col style="WIDTH: 77px"><col style="WIDTH: 82px"><col style="WIDTH: 78px"></colgroup><tbody>
</tbody>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Weazel

Well-known Member
Joined
Dec 24, 2011
Messages
3,155
maybe something like...

G2=SUMIFS($C$2:$C$9999,$B$2:$B$9999,">="&E2,$B$2:$B$9999,"<="&F2)

Row\Col
B​
C​
D​
E​
F​
G​
1​
BCDEFG
2​
1-Jan-16
10
1-Feb-16
29-Feb-16
110​
3​
11-Jan-16
20
1-Jan-16
14-Feb-16
130​
4​
25-Jan-16
50
5​
1-Feb-16
20
6​
14-Feb-16
30
7​
29-Feb-16
60

<tbody>
</tbody>
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,559
Messages
5,832,462
Members
430,136
Latest member
Asir Jefferson

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
Top