Sumproduct over Multiple Columns

mucah!t

Well-known Member
Joined
Jun 27, 2009
Messages
593
Hello all,

I can't get the formula in G1 working.
It should sum all the numbers in the given range but ends up with a 81 instead of a 3 [see D17]

In the end I would like to deduct G1 from F1
Any ideas?

Excel Workbook
BCDEFGH
110-Jan18-JanAF2481
2
3AFAFAFDMDMDM
41-Jan
52-Jan
63-Jan
74-Jan
85-Jan
96-Jan
107-Jan
118-Jan
129-Jan
1310-JanCDC
1411-JanCACN
1512-JanC2C3
1613-JanctC
1714-Jan3
1815-Jan
1916-Jan
2017-Jan
2118-Jan
2219-Jan
2320-Jan
2421-Jan
2522-Jan
2623-Jan
Sheet1
Excel 2003
Cell Formulas
RangeFormula
G1=SUMPRODUCT((C3:H3=D1)*(B4:B41>=B1)*(B4:B41<=C1)*SUM(C4:H41))
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
=sumproduct((c3:h3=d1)*(b4:b41>=b1)*(b4:b41<=c1),c4:h41)

Your original formula was basically working on the lines of

(9 rows in date range)*(3 columns with matching criteria)*(sum(C4:H41)=3)

9 * 3 * 3 = 81
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,774
Members
452,942
Latest member
VijayNewtoExcel

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