Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default Sumif a set of corresponding values

I want to sum up a column of data if the value of two columns is what I want.

E.g.
Y/N Qty
Apple N 1
Banana Y 0
Apple Y 0
Apple Y 6
Banana N 3

I would like to be able to look up apples and Y and sum up the corresponding
column. In the above example the answer would be 6. If it was Bananas and Y
then it would be 0.

Anybody able to help?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Sumif a set of corresponding values

=SUMPRODUCT(--(A1:A5="apple"),--(B1:B5="Y"),C1:C5)

--
Gary''s Student - gsnu200777


"raphiel2063" wrote:

I want to sum up a column of data if the value of two columns is what I want.

E.g.
Y/N Qty
Apple N 1
Banana Y 0
Apple Y 0
Apple Y 6
Banana N 3

I would like to be able to look up apples and Y and sum up the corresponding
column. In the above example the answer would be 6. If it was Bananas and Y
then it would be 0.

Anybody able to help?

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
sumif for a range of values Jason Excel Discussion (Misc queries) 3 January 26th 07 02:31 PM
Sumif between values Ivano Excel Worksheet Functions 1 April 21st 06 06:10 PM
sumif absolute values DM Excel Discussion (Misc queries) 2 November 17th 05 06:34 PM
Sumif outputs values chrisc Excel Discussion (Misc queries) 4 October 27th 05 02:05 PM
Sumif with open Values tamato43 Excel Discussion (Misc queries) 5 March 21st 05 11:47 PM


All times are GMT +1. The time now is 05:06 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"