count if

  • Thread starter Thread starter gregork
  • Start date Start date
G

gregork

I need a formula to return text based on that text being in all the cells in
a range. I want the formula to ignore blank cells in the range. I have the
following formula but it is not working ...I think because of the blank
cells in the range.

IF(COUNTIF(I124:I139,"RED")=COUNTA(I124:I139),"RED","")

gregorK
 
Hi Gregork

this works for me
=IF(COUNTIF(B3:B11,"red")=COUNTA(B3:B11),"red","")
but only when the blank cells are truely blank (ie no space in there, or no
formula evaluating to blank etc) - do your "blank" cells have anything in
them?

Cheers
JulieD
 
Hi!

Have you put data in col I yet?

The formula works for me except when the target range is empty, when i
read RED.

Al
 
Hi Julie,
Thanks for the reply. Yes my cells have a lookup formula with an
argument....if false it returns ""

gregorK
 
Try this:

=IF(COUNTIF(I134:I139,"RED")=(COUNTA(I134:I139)-COUNTBLANK(I134:I139)),"RED"
,"")

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


Hi Julie,
Thanks for the reply. Yes my cells have a lookup formula with an
argument....if false it returns ""

gregorK
 
Yes it works, many thanks RD.

regards
gregorK

RagDyeR said:
Try this:

=IF(COUNTIF(I134:I139,"RED")=(COUNTA(I134:I139)-COUNTBLANK(I134:I139)),"RED"
,"")

--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


Hi Julie,
Thanks for the reply. Yes my cells have a lookup formula with an
argument....if false it returns ""

gregorK
 
Thanks for the feed-back!
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

Yes it works, many thanks RD.

regards
gregorK
 

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


Back
Top