countif function

A

andrewm

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
 
K

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"}),A15))>=1," ",ROW())

confirmed with Ctrl+Shift+Enter

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Formula not working properly 2
If Formula 10
Row references 1
Finding the weighted average of text that have been given values 1
Excel Formula 2
Times 2
Countif 2
CountIf Formula 1

Top