Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default ignore #NA in average formula

I'm plotting daily results in a data table which sometimes have 0 values. I
have created a formula which replaces the 0 values with #NA
ie:=IF(B6,B6,NA()) . This throws off the average formula at the end of the
table. Can someone suggest a solution, please?

Thanks

Rosina
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default ignore #NA in average formula


Hi,

Try this and change the range to suit

=AVERAGE(IF(ISNUMBER(A1:A5),A1:A5,FALSE))

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

Mike
"Chart blues" wrote:

I'm plotting daily results in a data table which sometimes have 0 values. I
have created a formula which replaces the 0 values with #NA
ie:=IF(B6,B6,NA()) . This throws off the average formula at the end of the
table. Can someone suggest a solution, please?

Thanks

Rosina

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default ignore #NA in average formula

Mike: Thank you for the tip... it did the job!

"Mike H" wrote:


Hi,

Try this and change the range to suit

=AVERAGE(IF(ISNUMBER(A1:A5),A1:A5,FALSE))

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

Mike
"Chart blues" wrote:

I'm plotting daily results in a data table which sometimes have 0 values. I
have created a formula which replaces the 0 values with #NA
ie:=IF(B6,B6,NA()) . This throws off the average formula at the end of the
table. Can someone suggest a solution, please?

Thanks

Rosina

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
ignore MAX and MIN values in a set to calculate average Dave F[_2_] Excel Discussion (Misc queries) 5 October 16th 07 06:07 PM
How to make average function ignore MIN and MAX Larry4500 Excel Worksheet Functions 3 August 21st 06 12:06 AM
Average calcs - ignore sheets Blackstar79 Excel Worksheet Functions 1 July 12th 06 08:37 PM
How do I ignore cells with errors when calculating an average? M Enfroy Excel Worksheet Functions 6 November 1st 05 03:26 PM
calculate average in percentage coloumn with #DIV/! (ignore error neelsels SA Excel Discussion (Misc queries) 2 September 6th 05 02:10 PM


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