Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Frank
 
Posts: n/a
Default multiple selections in a sumif functions

Can someone please help me with the following problem as a whole day of
surfing over the internet did not help:

I want to make a selection that when column A is cost and column B is apple
that the answer is 80 (sum of column C) as in the spreadsheet below:
A B C
cost apple 10
cost tomato 20
revenue apple 50
revenue tomato 30
cost apple 30
revenue tomato 20
cost tomato 10
cost apple 40

Your help is much appreciated!

Best regards,

Frank


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default multiple selections in a sumif functions

=SUMPRODUCT(--(A1:A20="cost"),--(B1:B20="apple"),C1:C20)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Frank" wrote in message
...
Can someone please help me with the following problem as a whole day of
surfing over the internet did not help:

I want to make a selection that when column A is cost and column B is

apple
that the answer is 80 (sum of column C) as in the spreadsheet below:
A B C
cost apple 10
cost tomato 20
revenue apple 50
revenue tomato 30
cost apple 30
revenue tomato 20
cost tomato 10
cost apple 40

Your help is much appreciated!

Best regards,

Frank




  #3   Report Post  
William Horton
 
Posts: n/a
Default multiple selections in a sumif functions

Frank,

Copy the below formula exactly like it is (including dashes --) in whatever
cell you want the answer. I am assuming your data is in cells A2:C9.
Therefore, you may have to change the data ranges.

=SUMPRODUCT(--(A2:A9="cost"),--(B2:B9="apple"),C2:C9)

This should produce the answer of 80 that you are looking for.

Hope this helps.

Bill Horton

"Frank" wrote:

Can someone please help me with the following problem as a whole day of
surfing over the internet did not help:

I want to make a selection that when column A is cost and column B is apple
that the answer is 80 (sum of column C) as in the spreadsheet below:
A B C
cost apple 10
cost tomato 20
revenue apple 50
revenue tomato 30
cost apple 30
revenue tomato 20
cost tomato 10
cost apple 40

Your help is much appreciated!

Best regards,

Frank


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
How do I use the sumif if I have multiple criteria (i.e. greater . Kellyatisl Excel Worksheet Functions 3 June 4th 06 06:33 AM
how do I use multiple nested functions? TeeJay Excel Worksheet Functions 3 February 20th 05 05:09 PM
How do I sum (like sumif) but predicated on multiple criteria, in. djpaik Excel Worksheet Functions 2 January 1st 05 01:12 PM
How do I ask for multiple criteria when creating a "sumif" formul. Rachelle Excel Worksheet Functions 3 December 1st 04 11:49 PM
Is it possible to specify multiple condition with SUMIF? Daniel Excel Worksheet Functions 1 November 17th 04 01:38 AM


All times are GMT +1. The time now is 06:40 AM.

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"