Average only if ALL cells filled.
For some reason I get "False" as my average instead of a number whether or not I have numbers in the five cells. I'm using as suggested: =IF(COUNTBLANK(C4:C8)=0,IF(ISERROR(ROUND(AVERAGE(C 4:C8),1)),"",ROUND(AVERAGE(C4:C8),1)),"") I would like to get a result, ie the average of the five cells, only if all five cells have values. -- chuck72352 ------------------------------------------------------------------------ chuck72352's Profile: http://www.thecodecage.com/forumz/member.php?userid=482 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=113853 |
Average only if ALL cells filled.
=IF(COUNT(C4:C8)=5,ROUND(AVERAGE(C4:C8),1),"")
"chuck72352" wrote: For some reason I get "False" as my average instead of a number whether or not I have numbers in the five cells. I'm using as suggested: =IF(COUNTBLANK(C4:C8)=0,IF(ISERROR(ROUND(AVERAGE(C 4:C8),1)),"",ROUND(AVERAGE(C4:C8),1)),"") I would like to get a result, ie the average of the five cells, only if all five cells have values. -- chuck72352 ------------------------------------------------------------------------ chuck72352's Profile: http://www.thecodecage.com/forumz/member.php?userid=482 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=113853 |
Average only if ALL cells filled.
Here's another one:
=IF(COUNT(C4:C8)=ROWS(C4:C8),ROUND(AVERAGE(C4:C8), 1),"") This way you don't have to count how many cells you have if the range happened to be something like C49:C801. -- Biff Microsoft Excel MVP "chuck72352" wrote in message ... For some reason I get "False" as my average instead of a number whether or not I have numbers in the five cells. I'm using as suggested: =IF(COUNTBLANK(C4:C8)=0,IF(ISERROR(ROUND(AVERAGE(C 4:C8),1)),"",ROUND(AVERAGE(C4:C8),1)),"") I would like to get a result, ie the average of the five cells, only if all five cells have values. -- chuck72352 ------------------------------------------------------------------------ chuck72352's Profile: http://www.thecodecage.com/forumz/member.php?userid=482 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=113853 |
All times are GMT +1. The time now is 07:37 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com