![]() |
If statement combining average
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)) -- B9M |
If statement combining average
=IF(COUNT(A39:C39)=0,"",AVERAGE(A39:C39))
-- Gary''s Student - gsnu200906 |
If statement combining average
Excel 2007:
=IFERROR(AVERAGE(A39:C39),"") Regards, Bernd |
If statement combining average
"Black9Medic" wrote:
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 ----- "Black9Medic" wrote in message ... 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)) -- B9M |
All times are GMT +1. The time now is 08:44 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com