ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Count if (https://www.excelbanter.com/excel-worksheet-functions/96260-count-if.html)

PhilScratchingmyhead

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


Marcelo

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


Ardus Petus

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




PhilScratchingmyhead

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





PhilScratchingmyhead

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



All times are GMT +1. The time now is 11:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com