Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default Sumif, having two condition

I want to use the function sumif. but I have two condition.

sumif(sheet1!a2:a100, sheet2!B2, Sheet1!D2:D100)
based on this, I want to add that when Sheet1!a2:a100 = Sheet2!B2, the value
on that row of column C must be larger than zero.

How can I do?

Thanks at advanced!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sumif, having two condition

=SUMPRODUCT(--(Sheet1!A2:A100=Sheet2!B2),--(Sheet1!C2:C1000),Sheet1!D2:D100)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"ViestaWu" wrote in message
...
I want to use the function sumif. but I have two condition.

sumif(sheet1!a2:a100, sheet2!B2, Sheet1!D2:D100)
based on this, I want to add that when Sheet1!a2:a100 = Sheet2!B2, the
value
on that row of column C must be larger than zero.

How can I do?

Thanks at advanced!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Sumif, having two condition

Hi

=SUMPRODUCT((Sheet1!$A$2:$A$100=Sheet2!$B$2)*
(Sheet1!$C$2:$C$1000)*Sheet1!$C$2:$C$100)

--
Regards

Roger Govier


"ViestaWu" wrote in message
...
I want to use the function sumif. but I have two condition.

sumif(sheet1!a2:a100, sheet2!B2, Sheet1!D2:D100)
based on this, I want to add that when Sheet1!a2:a100 = Sheet2!B2, the
value
on that row of column C must be larger than zero.

How can I do?

Thanks at advanced!



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 with or< condition Will Fleenor Excel Discussion (Misc queries) 8 April 27th 07 07:45 AM
sumif with or< condition Will Fleenor Excel Worksheet Functions 8 April 27th 07 07:45 AM
SUMIF - Compound Condition Mike McLellan Excel Discussion (Misc queries) 3 January 11th 06 10:56 AM
sumif on more than one condition steve alcock Links and Linking in Excel 4 May 13th 05 01:53 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 09:38 PM.

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

About Us

"It's about Microsoft Excel"