Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Average only if all cells filled


Is there an easy way to modify the formula below to only give a result
ONLY if all five cells (C4 through C8) have values entered?

=IF(ISERROR(ROUND(AVERAGE(C4:C8),1)),"",ROUND(AVER AGE(C4:C8),1))

Thank you,
Chuck


--
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=113816

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Average only if all cells filled

Hi

This should do it:

=IF(COUNTBLANK(C4:C8)=0,IF(ISERROR(ROUND(AVERAGE(C 4:C8),1)),"",ROUND(AVERAGE(C4:C8),1)),"")

Regards,
Per

"chuck72352" skrev i meddelelsen
...

Is there an easy way to modify the formula below to only give a result
ONLY if all five cells (C4 through C8) have values entered?

=IF(ISERROR(ROUND(AVERAGE(C4:C8),1)),"",ROUND(AVER AGE(C4:C8),1))

Thank you,
Chuck


--
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=113816


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Average only if all cells filled

=IF(COUNT(C4:C8)=5,ROUND(AVERAGE(C4:C8),1),"")

Since count only detects numbers, ensures that 5 numbers are present before
averaging.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"chuck72352" wrote:


Is there an easy way to modify the formula below to only give a result
ONLY if all five cells (C4 through C8) have values entered?

=IF(ISERROR(ROUND(AVERAGE(C4:C8),1)),"",ROUND(AVER AGE(C4:C8),1))

Thank you,
Chuck


--
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=113816


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Average only if all cells filled


For some reason I get "False" as my average whether or not I have
numbers in the five cells. I'm using as you suggested:

=IF(COUNTBLANK(C4:C8)=0,IF(ISERROR(ROUND(AVERAGE(C
4:C8),1)),"",ROUND(AVERAGE(C4:C8),1)),"")


--
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=113816

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Average only if all cells filled

see your other post

--
Biff
Microsoft Excel MVP


"chuck72352" wrote in message
...

Is there an easy way to modify the formula below to only give a result
ONLY if all five cells (C4 through C8) have values entered?

=IF(ISERROR(ROUND(AVERAGE(C4:C8),1)),"",ROUND(AVER AGE(C4:C8),1))

Thank you,
Chuck


--
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=113816



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
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 09:08 AM.

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

About Us

"It's about Microsoft Excel"