ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Newbie, Countif Question (https://www.excelbanter.com/excel-worksheet-functions/88498-newbie-countif-question.html)

[email protected]

Newbie, Countif Question
 
How do I Countif A1=B1 OR A1=C1 OR B1=C1, Trying to build something
and wondering, help if you can, thank you


Ashish Mathur

Newbie, Countif Question
 
Hi,

Assuming your datais arranged in range A1:C4 like this

5 4 6
5 6 1
4 4 2
1 2 1

Use the following array formula (Ctrl+Shift+Enter) in cell C7

=COUNT(IF(($A$1:$A$4=$B$1:$B$4)+($A$1:$A$4=$C$1:$C $4)+($B$1:$B$4=$C$1:$C$4),$C$1:$C$4))

Regards,

Ashish Mathur

" wrote:

How do I Countif A1=B1 OR A1=C1 OR B1=C1, Trying to build something
and wondering, help if you can, thank you



Ragdyer

Newbie, Countif Question
 
Does this work for you:

=SUMPRODUCT(($A$1:$A$4=$B$1:$B$4)+(B1:B4=C1:C4))
?
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
wrote in message
oups.com...
How do I Countif A1=B1 OR A1=C1 OR B1=C1, Trying to build something
and wondering, help if you can, thank you




All times are GMT +1. The time now is 07:31 AM.

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