View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default 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