Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formula for average with a "IF" statement

I am trying to do a formula for averaging a series of numbers (which I can
do) exept if there is zero in the series I want to ignore it in the avg. How
do I write an IF statement for this?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Formula for average with a "IF" statement

Hi,

=AVERAGE(IF(A1:A100<0,A1:A100))
enter using Ctrl+Shift+Enter

Cheers!
Jean-Guy

"latripl" wrote:

I am trying to do a formula for averaging a series of numbers (which I can
do) exept if there is zero in the series I want to ignore it in the avg. How
do I write an IF statement for this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Formula for average with a "IF" statement

Two ways:
1) Create an array formula: http://www.mrexcel.com/tip011.shtml
2) SUMIF(...)/COUNTIF(...) where the criteria for both functions is "greater
than zero". (The sum of the items greater than zero in your set divided by
the count of the items greater than zero in your set.)

Since you don't provide detail it's impossible to give you an accurate
formula. Post back if you have questions about either option.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"latripl" wrote:

I am trying to do a formula for averaging a series of numbers (which I can
do) exept if there is zero in the series I want to ignore it in the avg. How
do I write an IF statement for this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Formula for average with a "IF" statement

How about =sum($A:$A)/(countif($A:$A,"0"))

"latripl" wrote:

I am trying to do a formula for averaging a series of numbers (which I can
do) exept if there is zero in the series I want to ignore it in the avg. How
do I write an IF statement for this?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 145
Default Formula for average with a "IF" statement

pinmaster -
how would i modify that statement to EXCLUDE blank cells but include 0 ?
tammy


"pinmaster" wrote:

Hi,

=AVERAGE(IF(A1:A100<0,A1:A100))
enter using Ctrl+Shift+Enter

Cheers!
Jean-Guy

"latripl" wrote:

I am trying to do a formula for averaging a series of numbers (which I can
do) exept if there is zero in the series I want to ignore it in the avg. How
do I write an IF statement for this?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Formula for average with a "IF" statement

No need.... blank cells and text does not effect an average formula, as it
stands it will average values below and above 0 but not 0.

HTH
Jean-Guy

"Tammy" wrote:

pinmaster -
how would i modify that statement to EXCLUDE blank cells but include 0 ?
tammy


"pinmaster" wrote:

Hi,

=AVERAGE(IF(A1:A100<0,A1:A100))
enter using Ctrl+Shift+Enter

Cheers!
Jean-Guy

"latripl" wrote:

I am trying to do a formula for averaging a series of numbers (which I can
do) exept if there is zero in the series I want to ignore it in the avg. How
do I write an IF statement for this?

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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
IF statement when formula result is blank Bonnie Excel Worksheet Functions 2 September 1st 05 05:08 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula Problem - If Statement Margie Excel Worksheet Functions 4 April 29th 05 10:07 PM


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