Having Issues With Conditional Partial Vertical Column Sums Based On Date Ranges

Aimee S.

Board Regular
Joined
Sep 28, 2010
Messages
236
Office Version
  1. 365
Platform
  1. Windows
:eek:

https://imgur.com/a/G6LurIo

Hello Folks.

Hoping someone can assist with this dilemma. The image linked herein shows what the spreadsheet looks like. How would I write formulas in cells I11, J11, K11, and L11 such that they all reference the entered start and end dates in cells J5 and K5 and subsequently SUM the corresponding columns D, E, F and G using the dates in Columns B and C as a guide?

For example, if the Review Period is 12/23/18 to 1/12/19, in cell I11 I would want the formula to SUM cells D4 through D7. If the Review Period is 12/30/18 through 1/12/19, I would only want the formula in cell I11 to SUM values in D5 through D6 (see how the Start and End Dates match up).

Any help will be immensely appreciated!!!!
Aimee in MadTown WI
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
How about in I11 copied across
=SUMPRODUCT(($B$4:$B$23>=$J$4)*($C$4:$C$23<=$K$4),D4:D23)
 
Upvote 0
That works wonderfully, Fluff. Good Lord how did I not consider SUMPRODUCT - my mind was racing with INDEX and FIND and MATCH and -2 columns or +2 columns etc here or there. Occam's Razor and all that I suppose! Thanks so much!!!!!!
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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