Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Still trying to average 4 worksheets and having formula problems

Basically I need the average of 4 cells on separate worksheets with 1 or more
cells having a DIV/O message. A little background: these 4 worksheets are the
quarterly results (averages from the monthly workbooks) then I need a formula
that averages the quarters to make a year-to-date running total. I can't get
this total without values entered in all 4 workbooks in which case we won't
have until all data for the year has been entered but we need to see the
running total now. In addition to the standard AVERAGE formula, here are the
other formulas already attempted:

=SUM('1st Quarter Jan-Mar'!G40,'2nd Quarter Apr-Jun'!G40,'3rd Quarter
Jul-Sep'!G40,'4th Quarter Oct-Dec'!G40)/COUNTA('1st Quarter Jan-Mar'!G40,'2nd
Quarter Apr-Jun'!G40,'3rd Quarter Jul-Sep'!G40,'4th Quarter Oct-Dec'!G40)

=SUM('1st Quarter Jan-Mar'!G40,'2nd Quarter Apr-Jun'!G40,'3rd Quarter
Jul-Sep'!G40,'4th Quarter Oct-Dec'!G40)/SUM(--(ISNUMBER('1st Quarter
Jan-Mar'!G40)),--(ISNUMBER('2nd Quarter Apr-Jun'!G40)),--(ISNUMBER('3rd
Quarter Jul-Sep'!G40)),--(ISNUMBER('4th Quarter Oct-Dec'!G40)))

Note: both of the above formulas only worked if all 4 quarters had their
data filled in

=IF(ISNUMBER('1st Quarter Jan-Mar'!G40),'1st Quarter
Jan-Mar'!G40,0)+IF(ISNUMBER('2nd Quarter Apr-Jun'!G40),'2nd Quarter
Apr-Jun'!G40,0)+IF(ISNUMBER('3rd Quarter Jul-Sep'!G40),'3rd Quarter
Jul-Sep'!G40,0)+IF(ISNUMBER('4th Quarter Oct-Dec'!G40),'4th Quarter
Oct-Dec'!G40,0)/SUM(--(ISNUMBER('1st Quarter Jan-Mar'!G40)),--(ISNUMBER('2nd
Quarter Apr-Jun'!G40)),--(ISNUMBER('3rd Quarter
Jul-Sep'!G40)),--(ISNUMBER('4th Quarter Oct-Dec'!G40)))

Note:that above formula works only if 1 quarter is filled, but 2 or
more quarters and it adds rather than give the average.

Does anyone have any suggestions?




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Still trying to average 4 worksheets and having formula problems

The resulting formula will be pretty long. I'm gonna use shortened sheet
names:

=AVERAGE(IF(COUNT(Sheet1!G40),Sheet1!G40,{""}),IF( COUNT(Sheet2!G40),Sheet2!G40,{""}),IF(COUNT(Sheet3 !G40),Sheet3!G40,{""}),IF(COUNT(Sheet4!G40),Sheet4 !G40,{""}))

With your actual sheet names that'll be pretty long.

An alternative is to pull each of those cells into your summary sheet:

A1: =Sheet1!G40
A2: =Sheet2!G40
A3: =Sheet3!G40
A4: =Sheet4!G40

Then just average A1:A4 -

Array entered** :

=AVERAGE(IF(ISNUMBER(A1:A4),A1:A4))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Or, normally entered:

=SUMIF(A1:A4,"<1E100")/COUNT(A1:A4)

--
Biff
Microsoft Excel MVP


"alisah" wrote in message
...
Basically I need the average of 4 cells on separate worksheets with 1 or
more
cells having a DIV/O message. A little background: these 4 worksheets are
the
quarterly results (averages from the monthly workbooks) then I need a
formula
that averages the quarters to make a year-to-date running total. I can't
get
this total without values entered in all 4 workbooks in which case we
won't
have until all data for the year has been entered but we need to see the
running total now. In addition to the standard AVERAGE formula, here are
the
other formulas already attempted:

=SUM('1st Quarter Jan-Mar'!G40,'2nd Quarter Apr-Jun'!G40,'3rd Quarter
Jul-Sep'!G40,'4th Quarter Oct-Dec'!G40)/COUNTA('1st Quarter
Jan-Mar'!G40,'2nd
Quarter Apr-Jun'!G40,'3rd Quarter Jul-Sep'!G40,'4th Quarter Oct-Dec'!G40)

=SUM('1st Quarter Jan-Mar'!G40,'2nd Quarter Apr-Jun'!G40,'3rd Quarter
Jul-Sep'!G40,'4th Quarter Oct-Dec'!G40)/SUM(--(ISNUMBER('1st Quarter
Jan-Mar'!G40)),--(ISNUMBER('2nd Quarter Apr-Jun'!G40)),--(ISNUMBER('3rd
Quarter Jul-Sep'!G40)),--(ISNUMBER('4th Quarter Oct-Dec'!G40)))

Note: both of the above formulas only worked if all 4 quarters had
their
data filled in

=IF(ISNUMBER('1st Quarter Jan-Mar'!G40),'1st Quarter
Jan-Mar'!G40,0)+IF(ISNUMBER('2nd Quarter Apr-Jun'!G40),'2nd Quarter
Apr-Jun'!G40,0)+IF(ISNUMBER('3rd Quarter Jul-Sep'!G40),'3rd Quarter
Jul-Sep'!G40,0)+IF(ISNUMBER('4th Quarter Oct-Dec'!G40),'4th Quarter
Oct-Dec'!G40,0)/SUM(--(ISNUMBER('1st Quarter
Jan-Mar'!G40)),--(ISNUMBER('2nd
Quarter Apr-Jun'!G40)),--(ISNUMBER('3rd Quarter
Jul-Sep'!G40)),--(ISNUMBER('4th Quarter Oct-Dec'!G40)))

Note:that above formula works only if 1 quarter is filled, but 2 or
more quarters and it adds rather than give the average.

Does anyone have any suggestions?






  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Still trying to average 4 worksheets and having formula proble

That worked! Thank you!!!!!!!

"T. Valko" wrote:

The resulting formula will be pretty long. I'm gonna use shortened sheet
names:

=AVERAGE(IF(COUNT(Sheet1!G40),Sheet1!G40,{""}),IF( COUNT(Sheet2!G40),Sheet2!G40,{""}),IF(COUNT(Sheet3 !G40),Sheet3!G40,{""}),IF(COUNT(Sheet4!G40),Sheet4 !G40,{""}))

With your actual sheet names that'll be pretty long.

An alternative is to pull each of those cells into your summary sheet:

A1: =Sheet1!G40
A2: =Sheet2!G40
A3: =Sheet3!G40
A4: =Sheet4!G40

Then just average A1:A4 -

Array entered** :

=AVERAGE(IF(ISNUMBER(A1:A4),A1:A4))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Or, normally entered:

=SUMIF(A1:A4,"<1E100")/COUNT(A1:A4)

--
Biff
Microsoft Excel MVP


"alisah" wrote in message
...
Basically I need the average of 4 cells on separate worksheets with 1 or
more
cells having a DIV/O message. A little background: these 4 worksheets are
the
quarterly results (averages from the monthly workbooks) then I need a
formula
that averages the quarters to make a year-to-date running total. I can't
get
this total without values entered in all 4 workbooks in which case we
won't
have until all data for the year has been entered but we need to see the
running total now. In addition to the standard AVERAGE formula, here are
the
other formulas already attempted:

=SUM('1st Quarter Jan-Mar'!G40,'2nd Quarter Apr-Jun'!G40,'3rd Quarter
Jul-Sep'!G40,'4th Quarter Oct-Dec'!G40)/COUNTA('1st Quarter
Jan-Mar'!G40,'2nd
Quarter Apr-Jun'!G40,'3rd Quarter Jul-Sep'!G40,'4th Quarter Oct-Dec'!G40)

=SUM('1st Quarter Jan-Mar'!G40,'2nd Quarter Apr-Jun'!G40,'3rd Quarter
Jul-Sep'!G40,'4th Quarter Oct-Dec'!G40)/SUM(--(ISNUMBER('1st Quarter
Jan-Mar'!G40)),--(ISNUMBER('2nd Quarter Apr-Jun'!G40)),--(ISNUMBER('3rd
Quarter Jul-Sep'!G40)),--(ISNUMBER('4th Quarter Oct-Dec'!G40)))

Note: both of the above formulas only worked if all 4 quarters had
their
data filled in

=IF(ISNUMBER('1st Quarter Jan-Mar'!G40),'1st Quarter
Jan-Mar'!G40,0)+IF(ISNUMBER('2nd Quarter Apr-Jun'!G40),'2nd Quarter
Apr-Jun'!G40,0)+IF(ISNUMBER('3rd Quarter Jul-Sep'!G40),'3rd Quarter
Jul-Sep'!G40,0)+IF(ISNUMBER('4th Quarter Oct-Dec'!G40),'4th Quarter
Oct-Dec'!G40,0)/SUM(--(ISNUMBER('1st Quarter
Jan-Mar'!G40)),--(ISNUMBER('2nd
Quarter Apr-Jun'!G40)),--(ISNUMBER('3rd Quarter
Jul-Sep'!G40)),--(ISNUMBER('4th Quarter Oct-Dec'!G40)))

Note:that above formula works only if 1 quarter is filled, but 2 or
more quarters and it adds rather than give the average.

Does anyone have any suggestions?







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
Problems with worksheets RSteph Excel Discussion (Misc queries) 1 June 13th 07 05:38 PM
Problems with offset/average formula GaryC Excel Worksheet Functions 8 March 15th 06 07:14 PM
=Average(if( formula using different worksheets aka_krakur Excel Worksheet Functions 3 February 1st 06 12:16 AM
Problems copying a formula between worksheets xin Excel Discussion (Misc queries) 2 January 29th 06 06:54 PM
AVERAGE problems Jon Excel Worksheet Functions 5 February 1st 05 08:21 AM


All times are GMT +1. The time now is 11:36 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"