LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 860
Default help on averaging function

You're right Dave, I didn't allow for negatives.

So if the remaining cells are all blanks
=AVERAGE(A1:A12)

if the remaining cells are all zeroes
=SUM(A1:A12)/COUNTIF(A1:A12,"<0")

if the remaining cells are a mixture of blanks and zeroes
Then you will need Dave's array formula.


Regards
Martin

"Dave Thomas" wrote in message
t...
Are you assuming there are no negative numbers? Treesy doesn't state that
there aren't. Treesy just wanted to eliminate 0's and blanks.

"MartinW" wrote in message
...
Hi Treesy,

The average function will ignore blanks but not zero values.
So if the formula in those cells is returning 0 alter it to return ""

Alternatively this formula may help.
=SUM(A1:A12)/COUNTIF(A1:A12,"0")
adjust the ranges to suit.

HTH
Martin

"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??







 
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
Looking for conditional averaging or "Averageifs" function for threee11 Excel Worksheet Functions 0 November 30th 06 05:14 PM
Looking for conditional averaging or "Averageifs" function for threee11 Excel Worksheet Functions 0 November 30th 06 05:10 PM
Looking for conditional averaging or "Averageifs" function for '02 Dave F Excel Worksheet Functions 0 November 30th 06 04:59 PM
Averaging function is pulling back a zero in Excel Thennessee Excel Discussion (Misc queries) 3 October 11th 05 03:14 AM
Averaging function Sarah Excel Discussion (Misc queries) 0 January 18th 05 04:09 PM


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