Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ryder
 
Posts: n/a
Default How do I use an average function, not counting cells containing a

I am working on setting up a spreadsheet that will have monthly data and from
time to time one of the months will have a zero value. Off of this data I
want to do an average, but not use the cells that contain zeros. This is a
monthly report and there are 90 of these monthly tables, so you can see why I
want to figure out how to automate this.
  #2   Report Post  
Paul B
 
Posts: n/a
Default

Ryder, here is one way,

=SUMPRODUCT((A1:A10)/COUNTIF(A1:A10,"<0"))
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"Ryder" wrote in message
...
I am working on setting up a spreadsheet that will have monthly data and
from
time to time one of the months will have a zero value. Off of this data I
want to do an average, but not use the cells that contain zeros. This is
a
monthly report and there are 90 of these monthly tables, so you can see
why I
want to figure out how to automate this.



  #3   Report Post  
Adam
 
Posts: n/a
Default

Another way:
AVERAGE(IF(A1:A10<0,A1:A10,FALSE)).
Enter as array formula i.e. CTRL+SHIFT+ENTER

"Ryder" skrev:

I am working on setting up a spreadsheet that will have monthly data and from
time to time one of the months will have a zero value. Off of this data I
want to do an average, but not use the cells that contain zeros. This is a
monthly report and there are 90 of these monthly tables, so you can see why I
want to figure out how to automate 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
Using The Average Function if a cell has NA carl Excel Worksheet Functions 6 May 21st 23 07:46 PM
Using the average function LostNFound Excel Worksheet Functions 5 March 16th 05 12:45 PM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM
Counting Function Dilemma Simon Lloyd Excel Worksheet Functions 0 November 8th 04 03:13 PM
Using Average function when number is zero Deb Excel Worksheet Functions 3 November 6th 04 01:01 AM


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