Sum Multiple Criteria

J

JCS

Hello Everyone,

I have been try to learn how to use the SUM function with multiple criteria.
I have run into a road block with my experimentation. By the way, I am
using Excel 2003 SP3. My data looks like the following:

city Mfr model volume
dearborn ford taurus 10
troy ford fusion 20
shelby gm lacrosse 10
warren chrysler sebring 10
dearborn gm camaro 30
detroit ford fusion 40
shelby chrysler magnum 20
warren chrysler avenger 40
troy chrysler avenger 20
detroit gm lacrosse 50
detroit gm impala 30
warren ford fusion 40
troy chrysler avenger 20
detroit ford taurus 10

The formula I am having a problem with is:

{=SUM(($C$5:$C$18="taurus")+($C$5:$C$18="fusion")+($D$5:$D$18))}

The Sumprduct yields 120 as the answer which is correct but the formula
above yields 355 as the answer. What am I missing?

Thanx in advance,
John
 
J

Jacob Skaria

'array entered
=SUM((ISNUMBER(SEARCH({"taurus","fusion"},$C$5:$C$18)))*$D$5:$D$18)

OR
=SUMPRODUCT((ISNUMBER(SEARCH({"taurus","fusion"},
$C$5:$C$18)))*$D$5:$D$18)

If this post helps click Yes
 
J

Jacob Skaria

What your formula does is

=sum(count number of 'taurus'+ count number of 'fusion' + the array D5:D18)
=sum(2+3+350)
=355

If this post helps click Yes
 
J

JCS

Thanks again Jacob,

You gave me exactly what i was looking for. I was looking for the why my
formula was not working. Thank you so much!

John
 
W

WKH8919

What your formula does is

=sum(count number of 'taurus'+ count number of 'fusion' + the array D5:D18)
=sum(2+3+350)
=355

If this post helps click Yes

Simple way is

=SUMIF(C5:C18,"taurus",D5:D18)+SUMIF(C5:C18,"fusion",D5:D18)

Worawat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top