View Single Post
  #21  
Old July 18th, 2007, 12:48 AM posted to microsoft.public.excel.worksheet.functions
driller
external usenet poster
 
Posts: 698
Default help on averaging function

for the first time!!g
--
regards,
driller

*****
- dive with Jonathan Seagull



"Dave Thomas" wrote:

hehe, have fun!
"driller" wrote in message
...
thanks all,
outta here!

--
regards,
driller

*****
- dive with Jonathan Seagull



"driller" wrote:

sorry Sir Chip Pearson,

not aware of that,
yet the starter solution i gave seems the same considering that (just
guessing its the positive),
my logic is if 0 is out of the numeric range, then either the positive or
negative range will be a selected criteria
*and not necessarily both of it...* unless deem logical...in any sense.

maybe treesy has to specify now which range of data he/she prefer "the
positive or the negative"

cordially,
--
regards,
driller

*****
- dive with Jonathan Seagull



"Chip Pearson" wrote:

Treesy,

I use that exact need as the example on my Array Formulas web page. The
formula you want is

=AVERAGE(IF(A1:A120,A1:A12,FALSE))

Since this is an array formula, you must press CTRL SHIFT ENTER rather
than
just ENTER when you first enter the formula and whenever you edit it
later.
If you do this properly, Excel will display the formula enclosed in
curly
braces { }.

Change the range A1:A12 to the range containing your data.

See www.cpearson.com/Excel/ArrayFormulas.aspx


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"Treesy" wrote in message
...
Is there a way to not have a blank or zero value not be counted in an
average
function. Example:

I have a spreadsheet that has a year's worth of data. Currently, it
is
only
filled in through June. At the very end, I want it to average some
of the
data. The formula has 12 cells that I want averaged but if one of
those
cells is blank or zero, I want it ignored. 6 of the 12 cells have
data.
Right now, I want it to average the 6 cells that have data. Next
month,
it
will average 7, so on and so forth. Right now, it is taking the 6
values
and
dividing by the 12 cells, even though 6 of them contain nothing. I
guess
I
want the calculation to change as data is entered without having to
change
the formula every month and add the new cell. Is this possible??