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 Countif a corresponding value is not equal to zero or blank

I want to use countif to count the number of entries in a big list. However,
I want to count the number of times an entry appears but only if the column
next to it is not equal to zero of blank.

E.g.
Qty
Apple 1
Banana 0
Apple 0
Apple 6
Banana 3

I would like to be able to use countif to sum up the number of times apple
appears when the qty is greater than zero (or blank) so in this case it would
be 2, not 3 as one entry is 0.

Can you help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Countif a corresponding value is not equal to zero or blank

=SUMPRODUCT((A1:A100="Apple")*(B1:B1000))

"raphiel2063" wrote:

I want to use countif to count the number of entries in a big list. However,
I want to count the number of times an entry appears but only if the column
next to it is not equal to zero of blank.

E.g.
Qty
Apple 1
Banana 0
Apple 0
Apple 6
Banana 3

I would like to be able to use countif to sum up the number of times apple
appears when the qty is greater than zero (or blank) so in this case it would
be 2, not 3 as one entry is 0.

Can you 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
Countif does not equal JRD Excel Worksheet Functions 6 April 4th 23 10:51 AM
CountIf not Equal to. Pendelfin Excel Discussion (Misc queries) 4 February 27th 07 02:27 PM
Why does blank text equal 0? [email protected] Excel Worksheet Functions 6 October 12th 06 03:47 AM
I don't want blank tp equal zero lovemark Excel Discussion (Misc queries) 3 May 19th 06 08:19 PM
Blank (empty) cell always equal to 0?? ulfah Excel Discussion (Misc queries) 3 February 1st 06 04:55 PM


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