#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Average Function

Is there anyway to establish an Average function that adjusts to only
populated fields?

Example:

I have a spreadsheet established that pulls from 12 other sheets. As a
conseqence,the fields on this sheet only update each month (the other sheets
are monthly sheets, and thus each one is used within the appopriate month).

I would like to AVERAGE the fields on the13th sheet, showing a monthly
average of the values derived from the other 12. However, I want the AVERAGE
to reflect only the populated fields, so that I receive an accurate "running"
average. Ex: if only January and February have data, then the average would
be divided by 2, not all 12 fields.

Is there any way to accomplish this? I figure it is a combination of the IF
and AVERAGE formulas, but I've no idea how to do this.

Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Average Function

"Stacy C" wrote:
I want the AVERAGE
to reflect only the populated fields, so that I receive an accurate
"running"
average. Ex: if only January and February have data, then the average
would
be divided by 2, not all 12 fields.


Are you using AVERAGE, as you say, or AVERAGEA?

AVERAGE, not AVERAGEA, behaves the way you wish, ignoring empty cells as
well as cells with text, notably "" (null string).

I suspect the root cause of your problem is the way in which you are pulling
data from the other worksheets into the 13th worksheet. Use a formula like
the following:

=if(sheet2!A1="", "", sheet2!A1)

If you do simply =sheet2!A1, you will get zero instead of "" in the
corresponding cell in the 13th worksheet.


----- original message -----

"Stacy C" wrote in message
...
Is there anyway to establish an Average function that adjusts to only
populated fields?

Example:

I have a spreadsheet established that pulls from 12 other sheets. As a
conseqence,the fields on this sheet only update each month (the other
sheets
are monthly sheets, and thus each one is used within the appopriate
month).

I would like to AVERAGE the fields on the13th sheet, showing a monthly
average of the values derived from the other 12. However, I want the
AVERAGE
to reflect only the populated fields, so that I receive an accurate
"running"
average. Ex: if only January and February have data, then the average
would
be divided by 2, not all 12 fields.

Is there any way to accomplish this? I figure it is a combination of the
IF
and AVERAGE formulas, but I've no idea how to do this.

Thank you in advance.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Average Function

I am using Average, but as you say, it is the pull of the data. I will adjust
my pull method and try it out. Thank you.

"JoeU2004" wrote:

"Stacy C" wrote:
I want the AVERAGE
to reflect only the populated fields, so that I receive an accurate
"running"
average. Ex: if only January and February have data, then the average
would
be divided by 2, not all 12 fields.


Are you using AVERAGE, as you say, or AVERAGEA?

AVERAGE, not AVERAGEA, behaves the way you wish, ignoring empty cells as
well as cells with text, notably "" (null string).

I suspect the root cause of your problem is the way in which you are pulling
data from the other worksheets into the 13th worksheet. Use a formula like
the following:

=if(sheet2!A1="", "", sheet2!A1)

If you do simply =sheet2!A1, you will get zero instead of "" in the
corresponding cell in the 13th worksheet.


----- original message -----

"Stacy C" wrote in message
...
Is there anyway to establish an Average function that adjusts to only
populated fields?

Example:

I have a spreadsheet established that pulls from 12 other sheets. As a
conseqence,the fields on this sheet only update each month (the other
sheets
are monthly sheets, and thus each one is used within the appopriate
month).

I would like to AVERAGE the fields on the13th sheet, showing a monthly
average of the values derived from the other 12. However, I want the
AVERAGE
to reflect only the populated fields, so that I receive an accurate
"running"
average. Ex: if only January and February have data, then the average
would
be divided by 2, not all 12 fields.

Is there any way to accomplish this? I figure it is a combination of the
IF
and AVERAGE formulas, but I've no idea how to do this.

Thank you in advance.



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 function Shannakinz Excel Discussion (Misc queries) 9 July 10th 09 10:39 PM
Is it possible to use address function in average function [email protected] Excel Discussion (Misc queries) 8 December 18th 07 12:52 AM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Excel Worksheet Functions 13 July 31st 05 03:59 PM
I want to use the MATCH function with the AVERAGE function but I . Miguel Excel Worksheet Functions 2 April 23rd 05 05:29 PM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM


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