#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PhilScratchingmyhead
 
Posts: n/a
Default Count if

Hi I want to count if col a=apples and col b=red so if col a=apples and col
b=green then it wouldn't add one to the total so I would end up with how many
red apples I have listed down????

Many thanks ya'll
P.x

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default Count if

hi Phil

use

=sumproduct(--(a2:a100="Apple")--(b2:b100="red))

hth
regards from Brazil
Marcelo

"PhilScratchingmyhead" escreveu:

Hi I want to count if col a=apples and col b=red so if col a=apples and col
b=green then it wouldn't add one to the total so I would end up with how many
red apples I have listed down????

Many thanks ya'll
P.x

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default Count if

=SUMPRODUCT((A1:A999="apples")*(B1:b999="red"))

HTH
--
AP

"PhilScratchingmyhead" a
écrit dans le message de news:
...
Hi I want to count if col a=apples and col b=red so if col a=apples and
col
b=green then it wouldn't add one to the total so I would end up with how
many
red apples I have listed down????

Many thanks ya'll
P.x



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PhilScratchingmyhead
 
Posts: n/a
Default Count if

Many thanks worked a treat...

"Ardus Petus" wrote:

=SUMPRODUCT((A1:A999="apples")*(B1:b999="red"))

HTH
--
AP

"PhilScratchingmyhead" a
écrit dans le message de news:
...
Hi I want to count if col a=apples and col b=red so if col a=apples and
col
b=green then it wouldn't add one to the total so I would end up with how
many
red apples I have listed down????

Many thanks ya'll
P.x




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PhilScratchingmyhead
 
Posts: n/a
Default Count if

Many thanks worked perfectly - good luck for the football..


"Marcelo" wrote:

hi Phil

use

=sumproduct(--(a2:a100="Apple")--(b2:b100="red))

hth
regards from Brazil
Marcelo

"PhilScratchingmyhead" escreveu:

Hi I want to count if col a=apples and col b=red so if col a=apples and col
b=green then it wouldn't add one to the total so I would end up with how many
red apples I have listed down????

Many thanks ya'll
P.x

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
Subtotals by count PineRest Excel Discussion (Misc queries) 1 May 10th 06 05:09 PM
Count consecutive dates only [email protected] Excel Discussion (Misc queries) 0 May 4th 06 03:58 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


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