Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default No including ZERO'S when using Average fucntion

I am using the average function in a large documents for different time
periods. Some time periods have ZERO, which bias the average.

Can I use the average function but not have it count zeros in the total?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default No including ZERO'S when using Average fucntion

Hi,

Here's 1 way an array formula

=AVERAGE(IF(A1:A20<0,IF(A1:A20<"",A1:A20)))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"Gudmundur" wrote:

I am using the average function in a large documents for different time
periods. Some time periods have ZERO, which bias the average.

Can I use the average function but not have it count zeros in the total?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default No including ZERO'S when using Average fucntion

or a shorter version

=AVERAGE(IF(A1:A20<0,A1:A20))

Mike

"Mike H" wrote:

Hi,

Here's 1 way an array formula

=AVERAGE(IF(A1:A20<0,IF(A1:A20<"",A1:A20)))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"Gudmundur" wrote:

I am using the average function in a large documents for different time
periods. Some time periods have ZERO, which bias the average.

Can I use the average function but not have it count zeros in the total?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 75
Default No including ZERO'S when using Average fucntion

Why don't you calculate the average yourself ie:-

=SUM(A1:A10)/COUNTIF(A1:A10,"0")
--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"Gudmundur" wrote:

I am using the average function in a large documents for different time
periods. Some time periods have ZERO, which bias the average.

Can I use the average function but not have it count zeros in the total?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default No including ZERO'S when using Average fucntion

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

which is array entered, that is use Ctrl-Shift-Enter not juts Enter.

--
__________________________________
HTH

Bob

"Gudmundur" wrote in message
...
I am using the average function in a large documents for different time
periods. Some time periods have ZERO, which bias the average.

Can I use the average function but not have it count zeros in the total?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default No including ZERO'S when using Average fucntion

Try

=IF(OR('All Audit Compilation 1'!K3584="P",ISNA('All Audit Compilation
1'!K3584)),"",1)

If this post helps click Yes
---------------
Jacob Skaria


"Gudmundur" wrote:

I am using the average function in a large documents for different time
periods. Some time periods have ZERO, which bias the average.

Can I use the average function but not have it count zeros in the total?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default No including ZERO'S when using Average fucntion

Hi,

In 2007

=AVERAGEIF(A1:A8,"<0",B1:B8)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Gudmundur" wrote:

I am using the average function in a large documents for different time
periods. Some time periods have ZERO, which bias the average.

Can I use the average function but not have it count zeros in the total?

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
Average formula Counting zero's How do I get just the numers counted. [email protected] Excel Discussion (Misc queries) 1 March 2nd 07 02:56 PM
Average formula Counting zero's How do I get just the numers counted. [email protected] Excel Discussion (Misc queries) 2 March 2nd 07 03:11 AM
Excluding Zero's from Average (SumIF / CountIF) Alex Excel Worksheet Functions 5 March 28th 06 07:27 PM
Average Non-Continuous Cells Without Zero's raeleanne Excel Worksheet Functions 8 July 22nd 05 02:48 PM
Average non continguous cells, excluding zero's Keithlearn Excel Worksheet Functions 2 April 27th 05 01:22 PM


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