View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Teethless mama Teethless mama is offline
external usenet poster
 
Posts: 3,718
Default 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