Sumproduct or Sumifs?

rsulliva

Board Regular
Joined
Sep 13, 2007
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Hi, I have a table where I am trying to sum all items that meet certain criteria, but I am getting a #value error. I don't think it likes the "2025-Q2" heading, but I can't seem to make the formula work. Tried the formula at the bottom, but it gives #value error. Of course this table is a thousand times larger in reality. Any suggestions?
Criteria 1Product 1
Criteria 2Plan
Date2025-Q2
Table
Criteria 1Criteria 22025-Q12025-Q22025-Q22025-Q22025-Q3
Product 1Plan13579
Product 2Plan246810
#Value=SUMPRODUCT((A7:A9=B2)*(B7:B9=B3)*(C7:G7=B4)*(C7:G9))
 
Hello - try using SUM(FILTER(C7:G9,A7:A9=B1)*(C3:G3))...this should give 15 for 2025-Q2
 
Upvote 0
Conditions and rank start at row 8.

Try:

Libro1
ABCDEFG
1
2Criteria 1Product 1
3Criteria 2Plan
4Date2025-Q2
5
6Table
7Criteria 1Criteria 22025-Q12025-Q22025-Q22025-Q22025-Q3
8Product 1Plan13579
9Product 2Plan246810
10
1115
Hoja1
Cell Formulas
RangeFormula
B11B11=SUMPRODUCT((A8:A9=B2)*(B8:B9=B3)*(C7:G7=B4)*(C8:G9))
 
Upvote 0
I read recently where Sumproduct is a bit of a legacy function in 365 so I thought I'd try the following with just Sum:

Book1
ABCDEFG
1
2Criteria 1Product 1
3Criteria 2Plan
4Date2025-Q2
5
6Table
7Criteria 1Criteria 22025-Q12025-Q22025-Q22025-Q22025-Q3
8Product 1Plan13579
9Product 2Plan246810
10
1115
Sheet1
Cell Formulas
RangeFormula
B11B11=SUM((A8:A9=B2)*(B8:B9=B3)*(C7:G7=B4)*(C8:G9))
 
Upvote 0
Solution
Thanks guys - Dante and kevin - I was able to get the proper results with both of these formulas. I went with kevin's solution as it did not use the Sumproduct. Nick - I kept getting some unexpected results. Thanks again.
 
Upvote 0

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