SUMPRODUCT does not equal Criteria Range

oakwood_001

Board Regular
Joined
Apr 4, 2008
Messages
108
Hi All,

I'm trying to exclude several criterion from a list in a SUMPRODUCT formula with little success.

I've tried doing it using a range in the example shown below:

=SUMPRODUCT(--(Data!$A$18:$A$130="Ford"),--(Data!$B$18:$B$130<>S14:S18),--(Data!$C$18:$C$130=B13),--(Data!D$18:D$130))

Where in this example
A:A is a list of car makes
B:B is the model of the car where I want to exclude certain list of values which is in the range S14:S18
C:C is the year of manufacture
D:D is a number range that I want to return

Car Make
Model
Year
Volume
Ford
Focus
2009
4
Hyundai
i30
2010
7
Mazda
MX5
2011
8
Ford
Fiesta
2009
10
Ford
Mondeo
2008
3

<tbody>
</tbody>


How would I also type this formula by using a manual list of exclusions? e.g. "Focus", "Fiesta", "Mondeo"

Help greatly appreciated.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi, here is one possible option:

Code:
=SUMPRODUCT(--(Data!$A$18:$A$130="Ford"),--(ISERROR(MATCH(Data!$B$18:$B$130,S14:S18,0))),--(Data!$C$18:$C$130=B13),Data!D$18:D$130)
 
Upvote 0
Could I use the same formula with a 'manual' list?

Do you mean like this:

Rich (BB code):
=SUMPRODUCT(--(Data!$A$18:$A$130="Ford"),--(ISERROR(MATCH(Data!$B$18:$B$130,{"Focus","Fiesta","Mondeo"},0))),--(Data!$C$18:$C$130=B13),Data!D$18:D$130)
 
Upvote 0
Further to this (FormR or anyone else reading), how would I do a SUMPRODUCT so that a range DOES equal a Criteria Range?
 
Upvote 0
Hi, try changing "ISERROR" to "ISNUMBER".
 
Upvote 0

Forum statistics

Threads
1,214,894
Messages
6,122,124
Members
449,066
Latest member
Andyg666

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