Sum row based on start date, end date, and row header

droshan

New Member
Joined
Dec 22, 2016
Messages
2
I have the following data and am trying to find the sum based on the following inputs:

1. Start Date (e.g. Jan-17)
2. End Date (e.g. Mar-17)
3. Row Header (A)

What formula can I build that would be dynamic based on my three inputs and output the sum?


Jan-17Feb-17Mar-17Apr-17May-17Jun-17Jul-17Aug-17Sep-17Oct-17Nov-17Dec-17
A$2,000-$780-$780-$780-$780-$780-$2,000-$2,000-$2,000-$2,000-$2,000-$2,000
B-$300-$300-$300-$300-$300-$300-$300-$300-$300-$300-$300-$300
C-$300-$300-$300-$300-$300-$300-$300-$300-$300-$300-$300-$300
D-$50-$50-$50-$50-$50-$50-$50-$50-$50-$50-$50-$50
E-$20-$20-$20-$20-$20-$20-$20-$20-$20-$20-$20-$20
F-$117-$117-$117-$117-$117-$117-$117-$117-$117-$117-$117-$117
Total Costs$1,214-$1,567-$1,567-$1,567-$1,567-$1,567-$2,787-$2,787-$2,787-$2,787-$2,787-$2,787

<colgroup><col><col span="12"></colgroup><tbody>
</tbody>


Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
How's this?


Excel 2010
ABCDEFGHIJKLM
1Jan-17Feb-17Mar-17Apr-17May-17Jun-17Jul-17Aug-17Sep-17Oct-17Nov-17Dec-17
2A$2,000.00-$780.00-$780.00-$780.00-$780.00-$780.00-$2,000.00-$2,000.00-$2,000.00-$2,000.00-$2,000.00-$2,000.00
3B-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00
4C-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00-$300.00
5D-$50.00-$50.00-$50.00-$50.00-$50.00-$50.00-$50.00-$50.00-$50.00-$50.00-$50.00-$50.00
6E-$20.00-$20.00-$20.00-$20.00-$20.00-$20.00-$20.00-$20.00-$20.00-$20.00-$20.00-$20.00
7F-$117.00-$117.00-$117.00-$117.00-$117.00-$117.00-$117.00-$117.00-$117.00-$117.00-$117.00-$117.00
8Total Costs$1,214.00-$1,567.00-$1,567.00-$1,567.00-$1,567.00-$1,567.00-$2,787.00-$2,787.00-$2,787.00-$2,787.00-$2,787.00-$2,787.00
9
10Start DateJan-17
11End DateMar-17
12Row HeaderA
13Sum$440.00
Sheet1
Cell Formulas
RangeFormula
B13=SUMPRODUCT((A2:A7=B12)*(B1:M1>=B10)*(B1:M1<=B11)*(B2:M7))
 
Upvote 0

Forum statistics

Threads
1,214,576
Messages
6,120,350
Members
448,956
Latest member
Adamsxl

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