Sum columns based on multiple criteria

Delaney21

New Member
Joined
Mar 15, 2018
Messages
8
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date Sold[/TD]
[TD]Aug-17[/TD]
[TD]Sep-17[/TD]
[TD]Oct-17[/TD]
[TD]Nov-17[/TD]
[TD]Dec-17[/TD]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Mar-18[/TD]
[TD]Apr-18[/TD]
[/TR]
[TR]
[TD]1/31/16[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]6/25/17[/TD]
[TD]18[/TD]
[TD]18[/TD]
[TD]18[/TD]
[TD]18[/TD]
[TD]18[/TD]
[TD]18[/TD]
[TD]18[/TD]
[TD]18[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]1/5/18[/TD]
[TD]19[/TD]
[TD]19[/TD]
[TD]19[/TD]
[TD]19[/TD]
[TD]19[/TD]
[TD]19[/TD]
[TD]19[/TD]
[TD]19[/TD]
[TD]19[/TD]
[/TR]
[TR]
[TD]4/23/17[/TD]
[TD]21[/TD]
[TD]21[/TD]
[TD]21[/TD]
[TD]21[/TD]
[TD]21[/TD]
[TD]21[/TD]
[TD]21[/TD]
[TD]21[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]8/16/17[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]17[/TD]
[TD]17[/TD]
[/TR]
</tbody>[/TABLE]

I'm trying to figure out a formula that will look at the date sold column and only pull dates before 1/1/18 and then I need it to sum Aug-17 to a specific date - this date will change on a frequent basis, so I was going to put that end date in a separate cell that I could reference.

For this example, I need it to start the sum at Aug-17 (which will never change), to Dec-17 (end date will change frequently). I've colored the numbers I want it to sum in red.
Will someone please help me with a formula to do this?

Thank you!!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Excel 2010
ABCDEFGHIJKLMN
1Date Sold1-Aug1-Sep1-Oct1-Nov1-Dec1-Jan1-Feb1-Mar1-Apr
21/31/2016202020202020202020date column Before1/1/2018
36/25/2017181818181818181818sum until12/1/2017
41/5/2018191919191919191919
54/23/2017212121212121212121
68/16/2017171717171717171717380
7
Sheet3
Cell Formulas
RangeFormula
M6{=SUMPRODUCT(MMULT(TRANSPOSE(B2:J6),--(N2>A2:A6)),TRANSPOSE(--(B1:J1<=N3)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Excel 2010
ABCDEFGHIJ
1Date SoldAug-17Sep-17Oct-17Nov-17Dec-17Jan-18Feb-18Mar-18Apr-18
21/31/2016202020202020202020
36/25/2017181818181818181818
41/5/2018191919191919191919
54/23/2017212121212121212121
68/16/2017171717171717171717
7
8
9380
Sheet3
Cell Formulas
RangeFormula
B9=SUMPRODUCT(($A$2:$A$6<43101)*($B$1:$J$1<43101)*$B$2:$J$6)
 
Upvote 0

Forum statistics

Threads
1,224,862
Messages
6,181,463
Members
453,043
Latest member
Sronquest

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