If statement combining average

B

Black9Medic

Hi,

I am creating an efficiency report and I am stuck on a problem. I am
getting a false statement when all the cells have no information in it when I
actually need that cell to remain blank when there is nothing to report.

Here is the formula I am using: =IF(COUNT(A39:C39),AVERAGE(A39:C39))
 
J

JoeU2004

Black9Medic said:
I am getting a false statement when all the cells have no information
in it when I actually need that cell to remain blank when there is nothing
to report.

Here is the formula I am using: =IF(COUNT(A39:C39),AVERAGE(A39:C39))

Look at the Help page for the IF function. It has a 3rd parameter, which
defaults to FALSE. The IF function returns the value of the 3rd parameter
when COUNT() returns zero, exactly the condition you describe. Your formula
should be:

=IF(COUNT(A39:C39), AVERAGE(A39:C39), "")


----- original message -----
 

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