#1   Report Post  
Natalie
 
Posts: n/a
Default Count in tables

I need to know how to count the number of times 0& appears next to each item -

Melons 0%
Apples 0%
Melons 0%
Grapes 0%
Melons 10%
Apples 10%
Melons 0%

I need an answer to how many times Melons are 0%?

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=sumproduct(--(A1:A100="Melons"),--(B1:B100=0))

--

HTH

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


"Natalie" wrote in message
...
I need to know how to count the number of times 0& appears next to each

item -

Melons 0%
Apples 0%
Melons 0%
Grapes 0%
Melons 10%
Apples 10%
Melons 0%

I need an answer to how many times Melons are 0%?



  #3   Report Post  
Natalie
 
Posts: n/a
Default

Thanks!

What if I was to change some of the figures to 100% and some to 50%. Can I
change the formula to return anything less than 100%

"Bob Phillips" wrote:

=sumproduct(--(A1:A100="Melons"),--(B1:B100=0))

--

HTH

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


"Natalie" wrote in message
...
I need to know how to count the number of times 0& appears next to each

item -

Melons 0%
Apples 0%
Melons 0%
Grapes 0%
Melons 10%
Apples 10%
Melons 0%

I need an answer to how many times Melons are 0%?




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

This only counts the items, not return them

=sum(--(A1:A100="Melons"),--(B1:B100<1))

--

HTH

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


"Natalie" wrote in message
...
Thanks!

What if I was to change some of the figures to 100% and some to 50%. Can I
change the formula to return anything less than 100%

"Bob Phillips" wrote:

=sumproduct(--(A1:A100="Melons"),--(B1:B100=0))

--

HTH

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


"Natalie" wrote in message
...
I need to know how to count the number of times 0& appears next to

each
item -

Melons 0%
Apples 0%
Melons 0%
Grapes 0%
Melons 10%
Apples 10%
Melons 0%

I need an answer to how many times Melons are 0%?






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
Pivot Tables - "simple" question Eoin Bairead Excel Discussion (Misc queries) 1 February 28th 05 07:07 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM
Count number to reach a cumulative value Bruce Excel Worksheet Functions 5 January 25th 05 05:14 PM
How to paste Xcel tables legibly into Word . Help!! Nimo Excel Discussion (Misc queries) 1 December 14th 04 09:53 PM
count based on two fields - need quickly JO Excel Worksheet Functions 1 November 1st 04 09:44 PM


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