SUMPRODUCT formula for multiple column criteria not adding

sjha

Active Member
Joined
Feb 15, 2007
Messages
355
Hi,

I am trying to sum a column based on two criterias from two different columns. Below is the formula I am trying to use:

Code:
=SUMPRODUCT(('GROSS Contracts'!B5:B191="GROSS")*('GROSS Contracts'!C5:C191="Goldservice")*'GROSS Contracts'!D5:D253)

If Col B has a word GROSS and Col C has Goldservice, I want Excel to SUM all the numbers in Col D.

Formula above is returning #N/A. I have trying in all different ways but now working. Can you please help? Thank you.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Ranges in SUMPRODUCT formulas MUST be same size...
also, the SUM range should not be multiplied, just a comma before the Sum Range should be used.

try
Code:
=SUMPRODUCT(('GROSS Contracts'!B5:B191="GROSS")*('GROSS Contracts'!C5:C191="Goldservice"),'GROSS Contracts'!D5:D191)
 
Upvote 0

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
Your ranges are not the same size

try:


Code:
=SUMPRODUCT(('GROSS Contracts'!B5:B191="GROSS")*('GROSS Contracts'!C5:C191="Goldservice")*'GROSS Contracts'!D5:D191)
 
Upvote 0

Forum statistics

Threads
1,191,582
Messages
5,987,468
Members
440,097
Latest member
Wint

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
Top