ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   countif function (https://www.excelbanter.com/excel-worksheet-functions/34868-countif-function.html)

andrewm

countif function
 

Hi

can someone help me with a countif function

this one works - =if(countif(D2:D23,A15)=1," ",ROW())

however if I use more than one range it doesn't allow the formula

I tried to incorporate D2:D5, E5, F4

I tried this - = if(countif(D2:D5, E5, F4)=1," ",ROW())
it doesn't allow the formula

any help

thanks

andrewm


--
andrewm
------------------------------------------------------------------------
andrewm's Profile: http://www.excelforum.com/member.php...o&userid=23130
View this thread: http://www.excelforum.com/showthread...hreadid=386380


Krishnakumar


Hi,

First define names to the ranges.

D2:D5=Rng1,
E5=Rng2 and
F4=Rng3
and the formula

=IF(SUM(COUNTIF(INDIRECT({"rng1","rng2","rng3"}),A 15))=1," ",ROW())

confirmed with Ctrl+Shift+Enter

HTH


--
Krishnakumar


------------------------------------------------------------------------
Krishnakumar's Profile: http://www.excelforum.com/member.php...o&userid=20138
View this thread: http://www.excelforum.com/showthread...hreadid=386380



All times are GMT +1. The time now is 08:21 PM.

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