#1   Report Post  
Ed
 
Posts: n/a
Default Average formulas

I am trying to average the results of several different classes testing on
differnt tests. My problem is that if in one time period one class does not
test I get an error message.
=AVERAGE(SFOA!I36,SFOB!I37,SFOC!I31,SFOD!I38,SFOE! I38,SFOF!I38) If SFOB does
not take a particular test I get the #DIV/0! error. I am trying to find the
formula to ignore blank fields. Thanks for your assistance.

  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

AVERAGE DOES ignore blank fields and non-numeric fields (other than
errors). I presume that the cells referenced in your AVERAGE() formula
themselves contain averages, and you are getting #DIV/0! from your
formula because at least one of the referenced cells contains #DIV/0!.
You can solve the problem by fixing either your current formula, as in
=AVERAGE(IF(ISNUMBER(SFOA!I36),SFOA!I36),
IF(ISNUMBER(SFOB!I36),SFOB!I36), ...)
or by fixing the referenced formulas, as in
=IF(COUNT(range)=0,"",AVERAGE(range))

Also, note that if SFOD, SFOE, and SFOF are successive spreadsheets,
then you could simplify with a 3D formula, as in
=AVERAGE(SFOA!I36,SFOB!I37,SFOC!I31,SFOD:SFOF!I38)

Jerry

Ed wrote:

I am trying to average the results of several different classes testing on
differnt tests. My problem is that if in one time period one class does not
test I get an error message.
=AVERAGE(SFOA!I36,SFOB!I37,SFOC!I31,SFOD!I38,SFOE! I38,SFOF!I38) If SFOB does
not take a particular test I get the #DIV/0! error. I am trying to find the
formula to ignore blank fields. Thanks for your assistance.


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 form cells containing formulas? Edmdas Excel Worksheet Functions 7 March 7th 05 03:59 PM
How do you average text formulas?? bladelock Excel Discussion (Misc queries) 2 March 2nd 05 07:53 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM
Tricky formulas needed Myrna Larson Excel Worksheet Functions 2 October 29th 04 03:29 AM


All times are GMT +1. The time now is 06:55 PM.

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"