Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JCS JCS is offline
external usenet poster
 
Posts: 93
Default Sum Multiple Criteria

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
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sum Multiple Criteria

'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
---------------
Jacob Skaria


"JCS" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JCS JCS is offline
external usenet poster
 
Posts: 93
Default Sum Multiple Criteria

Thank you Jacob,

So, according to your solution, my solution is not possible.

John

"Jacob Skaria" wrote:

'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
---------------
Jacob Skaria


"JCS" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sum Multiple Criteria

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
---------------
Jacob Skaria


"JCS" wrote:

Thank you Jacob,

So, according to your solution, my solution is not possible.

John

"Jacob Skaria" wrote:

'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
---------------
Jacob Skaria


"JCS" wrote:

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



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JCS JCS is offline
external usenet poster
 
Posts: 93
Default Sum Multiple Criteria

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

"Jacob Skaria" wrote:

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
---------------
Jacob Skaria


"JCS" wrote:

Thank you Jacob,

So, according to your solution, my solution is not possible.

John

"Jacob Skaria" wrote:

'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
---------------
Jacob Skaria


"JCS" wrote:

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

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Sum Multiple Criteria

On Nov 18, 10:55*pm, Jacob Skaria
wrote:
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
---------------
Jacob Skaria

"JCS" wrote:
Thank you Jacob,


So, according to your solution, my solution is not possible.


John


"Jacob Skaria" wrote:


'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
---------------
Jacob Skaria


"JCS" wrote:


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


Simple way is

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

Worawat
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count multiple cells against multiple criteria in an Excel spreads EricB Excel Worksheet Functions 7 June 3rd 08 09:09 PM
match multiple criteria ina range from multiple criteria multiplet RG Excel Worksheet Functions 8 September 28th 07 04:21 AM
Index & Match functions - multiple criteria and multiple results [email protected] Excel Worksheet Functions 4 May 2nd 07 03:13 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Saleem Excel Worksheet Functions 1 January 12th 05 10:54 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Arain Excel Worksheet Functions 1 January 12th 05 08:33 AM


All times are GMT +1. The time now is 12:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"