Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 9
Default 1 cell average across multiple worksheets

Hello,
I have 14 worksheets in my current workbook, 13 of which are different employees. Each day I am entering data that is then automatically averaged into a mtd column. Sometimes there will be 0's in those mtd columns and I dont want those counted when i take the number from the single cell on all of the worksheets to produce a correct average on sheet 14 Please help i've been working on this for 3 days. Here is a list of different formulas Ive tried.

=SUM(sheet1:sheet13!B2)/COUNTIF(sheet1!B2,"0",sheet2,"0",sheet3,"0",she et4,"0",sheet5,"0",sheet6,"0",sheet7,"0",sheet 8,"0",sheet9,"0",sheet10,"0",sheet11,"0",sheet 12,"0",sheet13,"0")

=AVERAGE(IF(sheet1:sheet13!B2<0,sheet1:sheet13!B2, "")

And other variations of those....either I get a REF or VALUE error when doing this. Ive searched and searched the last 3 days and im about to give up. Please help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
EdMac
 
Posts: n/a
Default 1 cell average across multiple worksheets


Have you tried

=AVERAGE(sheet1:sheet13!B2)

Average will ignore the cells that have no value in them

In your first formula you were omitting the cell reference for each
sheet.

HTH

Ed


--
EdMac
------------------------------------------------------------------------
EdMac's Profile: http://www.excelforum.com/member.php...o&userid=30736
View this thread: http://www.excelforum.com/showthread...hreadid=540150

  #3   Report Post  
Junior Member
 
Posts: 9
Default

Yes i've tried that, but that forumula includes zero values in cells which I dont want.


Quote:
Originally Posted by EdMac
Have you tried

=AVERAGE(sheet1:sheet13!B2)

Average will ignore the cells that have no value in them

In your first formula you were omitting the cell reference for each
sheet.

HTH

Ed


--
EdMac
------------------------------------------------------------------------
EdMac's Profile: http://www.excelforum.com/member.php...o&userid=30736
View this thread: http://www.excelforum.com/showthread...hreadid=540150
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default 1 cell average across multiple worksheets

Let A2:A14 contain the sheet names, then try the following formula,
which needs to be confirmed with CONTROL+SHIFT+ENTER...

=AVERAGE(IF(N(INDIRECT("'"&$A$2:$A$14&"'!B2"))0,N (INDIRECT("'"&$A$2:$A$1
4&"'!B2"))))

Hope this helps!

In article ,
curtll wrote:

Hello,
I have 14 worksheets in my current workbook, 13 of which are
different employees. Each day I am entering data that is then
automatically averaged into a mtd column. Sometimes there will be 0's
in those mtd columns and I dont want those counted when i take the
number from the single cell on all of the worksheets to produce a
correct average on sheet 14 Please help i've been working on this for 3
days. Here is a list of different formulas Ive tried.

=SUM(sheet1:sheet13!B2)/COUNTIF(sheet1!B2,"0",sheet2,"0",sheet3,"0",she et4,
"0",sheet5,"0",sheet6,"0",sheet7,"0",sheet8," 0",sheet9,"0",sheet10,"0",
sheet11,"0",sheet12,"0",sheet13,"0")

=AVERAGE(IF(sheet1:sheet13!B2<0,sheet1:sheet13!B2, "")

And other variations of those....either I get a REF or VALUE error when
doing this. Ive searched and searched the last 3 days and im about to
give up. Please help

  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default 1 cell average across multiple worksheets

No, A2:A14 should contain all the sheet names like

Sheet1
Sheet2
Sheet3
Sheet4
...........
Sheet13


so each cell in A2:A14 holds a sheet name

then you just use Domenic's formula

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"curtll" wrote in message
...

So in your formula where you have ("'"&$A$2:$A$14&"'!B2"), I should
enter it like this....("'"&Sheet1:Sheet13&"'B2")....???

Domenic Wrote:
Let A2:A14 contain the sheet names, then try the following formula,
which needs to be confirmed with CONTROL+SHIFT+ENTER...

=AVERAGE(IF(N(INDIRECT("'"&$A$2:$A$14&"'!B2"))0,N( INDIRECT("'"&$A$2:$A$1
4&"'!B2"))))

Hope this helps!

In article ,
curtll
wrote:

Hello,
I have 14 worksheets in my current workbook, 13 of which are
different employees. Each day I am entering data that is then
automatically averaged into a mtd column. Sometimes there will be
0's
in those mtd columns and I dont want those counted when i take the
number from the single cell on all of the worksheets to produce a
correct average on sheet 14 Please help i've been working on this for
3
days. Here is a list of different formulas Ive tried.


=SUM(sheet1:sheet13!B2)/COUNTIF(sheet1!B2,"0",sheet2,"0",sheet3,"0",sheet4 ,

"0",sheet5,"0",sheet6,"0",sheet7,"0",sheet8,"0",sh eet9,"0",sheet10,"0",
sheet11,"0",sheet12,"0",sheet13,"0")

=AVERAGE(IF(sheet1:sheet13!B20,sheet1:sheet13!B2," ")

And other variations of those....either I get a REF or VALUE error
when
doing this. Ive searched and searched the last 3 days and im about to
give up. Please help



--
curtll



  #7   Report Post  
Junior Member
 
Posts: 9
Default

Not really wanting to do it that way. I already have the spreadsheet the way I like it. I have the dates in the A column. Why cant I just average 1 cell across multiple worksheets and not include zeros in the calculation? I mean obviously its difficult because I have been working on this for almost a week now, but I know theres gotta be a guru on here that can figure it out right????

Quote:
Originally Posted by Peo Sjoblom
No, A2:A14 should contain all the sheet names like

Sheet1
Sheet2
Sheet3
Sheet4
...........
Sheet13


so each cell in A2:A14 holds a sheet name

then you just use Domenic's formula

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"curtll" wrote in message
...

So in your formula where you have ("'"&$A$2:$A$14&"'!B2"), I should
enter it like this....("'"&Sheet1:Sheet13&"'B2")....???

Domenic Wrote:
Let A2:A14 contain the sheet names, then try the following formula,
which needs to be confirmed with CONTROL+SHIFT+ENTER...

=AVERAGE(IF(N(INDIRECT("'"&$A$2:$A$14&"'!B2"))0,N( INDIRECT("'"&$A$2:$A$1
4&"'!B2"))))

Hope this helps!

In article
,
curtll
wrote:

Hello,
I have 14 worksheets in my current workbook, 13 of which are
different employees. Each day I am entering data that is then
automatically averaged into a mtd column. Sometimes there will be
0's
in those mtd columns and I dont want those counted when i take the
number from the single cell on all of the worksheets to produce a
correct average on sheet 14 Please help i've been working on this for
3
days. Here is a list of different formulas Ive tried.


=SUM(sheet1:sheet13!B2)/COUNTIF(sheet1!B2,"0",sheet2,"0",sheet3,"0",sheet4 ,

"0",sheet5,"0",sheet6,"0",sheet7,"0",sheet8,"0",sh eet9,"0",sheet10,"0",
sheet11,"0",sheet12,"0",sheet13,"0")

=AVERAGE(IF(sheet1:sheet13!B20,sheet1:sheet13!B2," ")

And other variations of those....either I get a REF or VALUE error
when
doing this. Ive searched and searched the last 3 days and im about to
give up. Please help



--
curtll
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default 1 cell average across multiple worksheets

You don't have to use that particular range, you can put your sheet names
somewhere else off view like in IV2:IV14 or hard code them. As far as a guru
I doubt you will find anyone more knowledgeable than Domenic when it comes
3D formulas. There is no way of using a condition over multiple sheets
without either hard code all sheets into the formula or using a range with
all sheet names

=AVERAGE(IF(N(INDIRECT("'"&{"Sheet1";"Sheet2";"She et3";"Sheet4";"Sheet5";"Sheet6";"Sheet7";"Sheet8"; "Sheet9";"Sheet10";"Sheet11";"Sheet12";"Sheet13"}& "'!B2"))0,N(INDIRECT("'"&{"Sheet1";"Sheet2";"Shee t3";"Sheet4";"Sheet5";"Sheet6";"Sheet7";"Sheet8";" Sheet9";"Sheet10";"Sheet11";"Sheet12";"Sheet13"}&" '!B2"))))

array entered


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"curtll" wrote in message
...

Not really wanting to do it that way. I already have the spreadsheet
the way I like it. I have the dates in the A column. Why cant I just
average 1 cell across multiple worksheets and not include zeros in the
calculation? I mean obviously its difficult because I have been
working on this for almost a week now, but I know theres gotta be a
guru on here that can figure it out right????

Peo Sjoblom Wrote:
No, A2:A14 should contain all the sheet names like

Sheet1
Sheet2
Sheet3
Sheet4
...........
Sheet13


so each cell in A2:A14 holds a sheet name

then you just use Domenic's formula

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"curtll" wrote in message
...

So in your formula where you have ("'"&$A$2:$A$14&"'!B2"), I should
enter it like this....("'"&Sheet1:Sheet13&"'B2")....???

Domenic Wrote:
Let A2:A14 contain the sheet names, then try the following formula,
which needs to be confirmed with CONTROL+SHIFT+ENTER...


=AVERAGE(IF(N(INDIRECT("'"&$A$2:$A$14&"'!B2"))0,N( INDIRECT("'"&$A$2:$A$1
4&"'!B2"))))

Hope this helps!

In article
,
curtll
wrote:

Hello,
I have 14 worksheets in my current workbook, 13 of which are
different employees. Each day I am entering data that is then
automatically averaged into a mtd column. Sometimes there will be
0's
in those mtd columns and I dont want those counted when i take the
number from the single cell on all of the worksheets to produce a
correct average on sheet 14 Please help i've been working on this for
3
days. Here is a list of different formulas Ive tried.



=SUM(sheet1:sheet13!B2)/COUNTIF(sheet1!B2,"0",sheet2,"0",sheet3,"0",sheet4 ,


"0",sheet5,"0",sheet6,"0",sheet7,"0",sheet8,"0",sh eet9,"0",sheet10,"0",
sheet11,"0",sheet12,"0",sheet13,"0")

=AVERAGE(IF(sheet1:sheet13!B20,sheet1:sheet13!B2," ")

And other variations of those....either I get a REF or VALUE error
when
doing this. Ive searched and searched the last 3 days and im about to
give up. Please help


--
curtll



--
curtll



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default 1 cell average across multiple worksheets

In addition to Peo's suggestions, I believe if you download and install
the free add-in Morefunc.xll, you should be able to use the THREED
function...

=AVERAGE(IF(THREED('Sheet1:Sheet13'!B2)0,THREED(' Sheet1:Sheet13'!B2)))

....confirmed with CONTROL+SHIFT+ENTER. Note that I haven't been able to
test it since this add-in is not compatible with my Mac version of
Excel. If you'd like to try it, the add-in can be found at the
following link...

http://xcell05.free.fr/

Hope this helps!

In article ,
curtll wrote:

Not really wanting to do it that way. I already have the spreadsheet
the way I like it. I have the dates in the A column. Why cant I just
average 1 cell across multiple worksheets and not include zeros in the
calculation?

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
Add last cell in last column of multiple worksheets? djc Excel Discussion (Misc queries) 2 May 1st 06 04:54 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Adding a row to worksheet does not update cell references in another. blausen Excel Worksheet Functions 5 February 25th 06 09:14 PM
how do I sum the same cell from multiple worksheets? rbperrie Excel Worksheet Functions 2 February 18th 05 05:53 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 09:43 AM.

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"