PC Review


Reply
Thread Tools Rate Thread

Conditional Average across worksheets

 
 
madduck
Guest
Posts: n/a
 
      13th Jul 2006

Hi all,

Was wondering if anyone could help.

I have 6 worksheets each containing a table as so

A4 down has dates
B4 down has one set of data "quality"
C4 down has one set of data "score"
etc... across to G4.

I want to set up another sheet that contains the average of the
corresponding cells
ie:=SUM(Andrew!B4,Lucy!B4,Corina!B4,Owen!B4,Anthony!B4,Bruce!B4)/6

My problem is sometimes there is do data in one of the cells :ie
Owen!B4.value = 0

I want the average of the cells excluding the cells that have a zero.

I can do this using
={AVERAGE(IF(B3:B16<>0, B3:B16,""))} for data on the same sheet, but
how do I do it across sheets?

Thanks Much


--
madduck
------------------------------------------------------------------------
madduck's Profile: http://www.excelforum.com/member.php...o&userid=36313
View this thread: http://www.excelforum.com/showthread...hreadid=560951

 
Reply With Quote
 
 
 
 
Biff
Guest
Posts: n/a
 
      13th Jul 2006
Hi!

Make a list of sheet names:

H1 = Andrew
H2 = Lucy
H3 = Corina
etc

Array entered:

=AVERAGE(IF(N(INDIRECT("'"&H1:H6&"'!B4"))<>0,N(INDIRECT("'"&H1:H6&"'!B4"))))

Biff

"madduck" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>
> Hi all,
>
> Was wondering if anyone could help.
>
> I have 6 worksheets each containing a table as so
>
> A4 down has dates
> B4 down has one set of data "quality"
> C4 down has one set of data "score"
> etc... across to G4.
>
> I want to set up another sheet that contains the average of the
> corresponding cells
> ie:=SUM(Andrew!B4,Lucy!B4,Corina!B4,Owen!B4,Anthony!B4,Bruce!B4)/6
>
> My problem is sometimes there is do data in one of the cells :ie
> Owen!B4.value = 0
>
> I want the average of the cells excluding the cells that have a zero.
>
> I can do this using
> ={AVERAGE(IF(B3:B16<>0, B3:B16,""))} for data on the same sheet, but
> how do I do it across sheets?
>
> Thanks Much
>
>
> --
> madduck
> ------------------------------------------------------------------------
> madduck's Profile:
> http://www.excelforum.com/member.php...o&userid=36313
> View this thread: http://www.excelforum.com/showthread...hreadid=560951
>



 
Reply With Quote
 
madduck
Guest
Posts: n/a
 
      13th Jul 2006

OMG !!

Thanks for the Reply Biff,

as you can see I tried that already (just with different cell
range)


But thanks to your Post I noticed that my formula had a space between N
& (

after removing this it now works.... yah !

If anyone can explain HOW this formula works, I would also apprieciate
it, I hate using things without know why

anyway thanks again Biff


--
madduck
------------------------------------------------------------------------
madduck's Profile: http://www.excelforum.com/member.php...o&userid=36313
View this thread: http://www.excelforum.com/showthread...hreadid=560951

 
Reply With Quote
 
Biff
Guest
Posts: n/a
 
      13th Jul 2006
=AVERAGE(IF(N(INDIRECT("'"&H1:H6&"'!B4"))<>0,N(INDIRECT("'"&H1:H6&"'!B4"))))

The Indirect function evaluates to an array of sheet ranges (even though the
range size is a single cell). Without the N function this would cause a
#VALUE! error. I've seen some people refer to this as "dereferencing". So
the N function passes the array as the numeric values. Not much of an
explanation but I don't know the exact technical reason. I just know that
this behavior is present and how to get around it. Harlan Grove can explain
it really well in technical terms.

Biff

"madduck" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>
> OMG !!
>
> Thanks for the Reply Biff,
>
> as you can see I tried that already (just with different cell
> range)
>
>
> But thanks to your Post I noticed that my formula had a space between N
> & (
>
> after removing this it now works.... yah !
>
> If anyone can explain HOW this formula works, I would also apprieciate
> it, I hate using things without know why
>
> anyway thanks again Biff
>
>
> --
> madduck
> ------------------------------------------------------------------------
> madduck's Profile:
> http://www.excelforum.com/member.php...o&userid=36313
> View this thread: http://www.excelforum.com/showthread...hreadid=560951
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average across worksheets ignoring zero Ted Microsoft Excel Worksheet Functions 2 3rd Nov 2009 05:09 PM
Average across selected worksheets Stephanie Microsoft Excel Worksheet Functions 1 19th Mar 2009 03:17 PM
Weighted Average across worksheets AS Microsoft Excel Misc 5 17th Jan 2007 03:25 PM
=Average(if( formula using different worksheets =?Utf-8?B?YWthX2tyYWt1cg==?= Microsoft Excel Worksheet Functions 3 1st Feb 2006 12:16 AM
Formula help - Average for 2 worksheets Jan Microsoft Excel Worksheet Functions 6 16th Dec 2003 05:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:30 AM.