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

How do you average a column that contains formulas, when some of the formula
results are zero?
--
Todd
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Average Functin

I'm assuming you want to ignore 0 values?

In that case, =SUM(A1:A10)/COUNTIF(A1:A10,"0")

This divides the sum of A1:A10 by the count of values in A1:A10 which are
greater than zero.

Dave
--
Brevity is the soul of wit.


"Todd" wrote:

How do you average a column that contains formulas, when some of the formula
results are zero?
--
Todd

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

Todd,

You could try sum / sumproduct. Ex. =SUM(A1:E1)/(SUMPRODUCT((A1:E1<0)*1))

"Todd" skrev i en meddelelse
...
How do you average a column that contains formulas, when some of the

formula
results are zero?
--
Todd



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Average Functin

Tod...do you expect results from zero to positive numbers only, no blank
results??

"Todd" wrote:

How do you average a column that contains formulas, when some of the formula
results are zero?
--
Todd

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Average Functin

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

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Todd" wrote in message
...
How do you average a column that contains formulas, when some of the

formula
results are zero?
--
Todd





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Average Functin

Nielz....when the divisor consider the count of negative number, then the
zero must be included in the count for the divisor....what do you think?

"Nielz" wrote:

Todd,

You could try sum / sumproduct. Ex. =SUM(A1:E1)/(SUMPRODUCT((A1:E1<0)*1))

"Todd" skrev i en meddelelse
...
How do you average a column that contains formulas, when some of the

formula
results are zero?
--
Todd




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 177
Default Average Functin

Thanks a lot. It worked.
--
Todd


"Dave F" wrote:

I'm assuming you want to ignore 0 values?

In that case, =SUM(A1:A10)/COUNTIF(A1:A10,"0")

This divides the sum of A1:A10 by the count of values in A1:A10 which are
greater than zero.

Dave
--
Brevity is the soul of wit.


"Todd" wrote:

How do you average a column that contains formulas, when some of the formula
results are zero?
--
Todd

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 177
Default Average Functin

Thanks
--
Todd


"Nielz" wrote:

Todd,

You could try sum / sumproduct. Ex. =SUM(A1:E1)/(SUMPRODUCT((A1:E1<0)*1))

"Todd" skrev i en meddelelse
...
How do you average a column that contains formulas, when some of the

formula
results are zero?
--
Todd




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 177
Default Average Functin

Thank you.
--
Todd


"Bob Phillips" wrote:

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

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Todd" wrote in message
...
How do you average a column that contains formulas, when some of the

formula
results are zero?
--
Todd




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default Average Functin

Tod this one assumes the average of formula result (not considering
#N/A,#DIV...etc)

Formula Result assumed only with some blank(""), some zero (0), and some
(+/-) numbers..

simply...=sum(a1:a10)/counta(a1:a10)

"Todd" wrote:

How do you average a column that contains formulas, when some of the formula
results are zero?
--
Todd

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
rolling average William Okumu Excel Worksheet Functions 5 May 25th 06 03:49 PM
Modified Average Function PA Excel Worksheet Functions 3 May 15th 06 12:20 PM
plotted Average Micayla Bergen Charts and Charting in Excel 4 July 15th 05 12:13 PM
What is this kind of average called? havocdragon Excel Worksheet Functions 3 June 24th 05 05:10 PM
AVERAGE and STDEV functions with logic t-rung Excel Worksheet Functions 1 May 26th 05 07:11 PM


All times are GMT +1. The time now is 11:35 PM.

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"