COUNT question

G

Gerard Sanchez

Hi,

In a range, B2:B23, I would like to count how many values are greater than
zero (0).

If count is an odd number, then "Unfilled Cell Present"
If count if even, then display count divided by 2.


Currently I have:

IF ( (CountIFs(B2:B23),">0")=ODD, "Unfilled Cell Present",
(Count(B2:B23))/2 ))

Problem is the ODD function here is not right . . . I think.

Anyone?
 
P

pogiman via OfficeKB.com

Try this:

=IF(mod((CountIf(B2:B23),">0"),2)=0,CountIf(B2:B23)/2,"Unfilled Cell Present")
 

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

Top