Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Average Valid Values

Hi All:

Is there anyone who can tell me how to calculate average
of valid values?

I have a huge data set with 1 to 6 valid values and 0 as
missing. I need to calculate average of only valid values
(1 to 6) for each record but to exclude 0 (missing). For
exmple,

1, 3, 3, 0, 5

The average for this record should be 3 because 0 is
missing value and should not be included. But when I use
Excel built in function Average, the result is 2.4.

Any help will be very very appreciated.


Charles



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Average Valid Values

How about:

=SUM(A1:A5)/COUNTIF(A1:A5,"<"&0)

Adjust the range to match your thousands of values.

Charles Deng wrote:

Hi All:

Is there anyone who can tell me how to calculate average
of valid values?

I have a huge data set with 1 to 6 valid values and 0 as
missing. I need to calculate average of only valid values
(1 to 6) for each record but to exclude 0 (missing). For
exmple,

1, 3, 3, 0, 5

The average for this record should be 3 because 0 is
missing value and should not be included. But when I use
Excel built in function Average, the result is 2.4.

Any help will be very very appreciated.

Charles


--

Dave Peterson

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
Data Valid - refers to the values of 2 cells ash3154 New Users to Excel 5 September 17th 09 04:11 PM
Formula to check against a list of valid values Barb W[_2_] Excel Worksheet Functions 3 March 4th 08 06:51 PM
How to valid the values? Eric Excel Worksheet Functions 10 August 26th 07 05:43 AM
Pop-up menu with valid values Pedro[_6_] Excel Programming 4 February 24th 04 05:24 PM
Valid ControlSource values Jason Gatsby Excel Programming 0 August 4th 03 07:36 PM


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