#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 516
Default Formulas

i am looking to get an average of a group of cells but I do not want the cell
with a 0 in to be included but the cells numbers will change when I reuse the
sheet. for example a2 will be a 253 cell a3 will be 0 cell a4 will be 432 but
the next day these cell numbers will changeA1 and A@ will have # and A4 will
not and I dont want to change the formuka every day.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formulas

Try this array formula** :

=AVERAGE(IF(A1:A10<0,A1:A10))

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

--
Biff
Microsoft Excel MVP


"Matt" wrote in message
...
i am looking to get an average of a group of cells but I do not want the
cell
with a 0 in to be included but the cells numbers will change when I reuse
the
sheet. for example a2 will be a 253 cell a3 will be 0 cell a4 will be 432
but
the next day these cell numbers will changeA1 and A@ will have # and A4
will
not and I dont want to change the formuka every day.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Formulas

Try this copy/paste formula into cell A11
=AVERAGEIF(A1:A10,"0")

"Matt" wrote:

i am looking to get an average of a group of cells but I do not want the cell
with a 0 in to be included but the cells numbers will change when I reuse the
sheet. for example a2 will be a 253 cell a3 will be 0 cell a4 will be 432 but
the next day these cell numbers will changeA1 and A@ will have # and A4 will
not and I dont want to change the formuka every day.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Formulas

"T. Valko" wrote...
Try this array formula** :

=AVERAGE(IF(A1:A10<0,A1:A10))

....

If the range could include negative numbers, zeros probably shouldn't
be excluded. Usually better to use

=AVERAGE(IF(A1:A100,A1:A10))
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Formulas

Hi,

Please array enter (Ctrl+Shift+Enter) the following formula

AVERAGE(IF((range<0),range))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Matt" wrote in message
...
i am looking to get an average of a group of cells but I do not want the
cell
with a 0 in to be included but the cells numbers will change when I reuse
the
sheet. for example a2 will be a 253 cell a3 will be 0 cell a4 will be 432
but
the next day these cell numbers will changeA1 and A@ will have # and A4
will
not and I dont want to change the formuka every day.


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
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
lookup formulas dependent upon lookup formulas Skibee Excel Worksheet Functions 1 July 20th 07 01:06 PM
automatically copy formulas down columns or copy formulas all the HowlingBlue Excel Worksheet Functions 1 March 16th 07 11:11 PM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
formulas for changing formulas? creativeops Excel Discussion (Misc queries) 4 January 26th 06 03:07 AM


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