Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Averaging ranges


I am looking to average a range of numbers, but I want to exclude any cell that has a zero from the Average. In this particular case, the zero's are filler only and have no real meaning but they are distorting my figure.

I can't seem to find the magic formula to make it function.

Brian








  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Averaging ranges

Brian,

Sum the range and divide by CountIf(cell < 0)

SteveM


Brian wrote:
I am looking to average a range of numbers, but I want to exclude any cell that has a zero from the Average. In this particular case, the zero's are filler only and have no real meaning but they are distorting my figure.

I can't seem to find the magic formula to make it function.

Brian


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Averaging ranges

Brian~

You can use:
=Sum(Range)/CountIf(Range, "<0")

Jay

Brian wrote:
I am looking to average a range of numbers, but I want to exclude any cell that has a zero from the Average. In this particular case, the zero's are filler only and have no real meaning but they are distorting my figure.

I can't seem to find the magic formula to make it function.

Brian


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Averaging ranges

=AVERAGE(IF(rng<0,rng))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

If, as I suspect you actually want numbers 0, just use

=AVERAGE(IF(rng0,rng))

--
HTH

Bob Phillips

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

"Brian" wrote in message
news:2006623101427.284606@brian...

I am looking to average a range of numbers, but I want to exclude any cell
that has a zero from the Average. In this particular case, the zero's are
filler only and have no real meaning but they are distorting my figure.

I can't seem to find the magic formula to make it function.

Brian









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
averaging ranges MMM Excel Discussion (Misc queries) 2 December 14th 09 09:20 PM
Averaging two ranges on the same column (excluding zeros) NoviceUser Excel Worksheet Functions 2 August 6th 09 04:16 AM
how copy formula that contains ranges so ranges do not overlap Patty Excel Worksheet Functions 1 November 20th 08 04:15 PM
Averaging multiple ranges with #n/a values Anne Excel Discussion (Misc queries) 0 August 13th 08 05:20 PM
named ranges - changing ranges with month selected gr8guy Excel Programming 2 May 28th 04 04:50 AM


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