Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average only if all cells filled chuck72352 Excel Discussion (Misc queries) 4 July 8th 09 10:40 PM
Ignoring non-filled formulas in average Laurizio Excel Discussion (Misc queries) 6 January 26th 09 01:44 PM
Calculating Average based on 3 filled cells from left in a row Narnimar Excel Discussion (Misc queries) 6 December 3rd 08 09:54 AM
Filled cells dont appear as filled SMILLS Excel Discussion (Misc queries) 6 October 18th 07 05:28 PM
Percentage of filled cells Carla Bradley Excel Worksheet Functions 1 January 7th 05 05:31 PM


All times are GMT +1. The time now is 03:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"