Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default Averaging Blank Cells

Hi

In cell R88 I have the following formula

=AVERAGE(R76:R87)

It works fine as soon as I enter data in the range but when there is no data
in the range it returns a #DIV/0! error.

This looks unsightly on the sheet and was wondering if there was a way that
I could surpress this error when there is no data entered.

Thanks

John


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Averaging Blank Cells

One way:
=IF(ISERROR(AVERAGE(R76:R87)),"",AVERAGE(R76:R87))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:370 Subscribers:68
xdemechanik
---
"John Calder" wrote:
In cell R88 I have the following formula

=AVERAGE(R76:R87)

It works fine as soon as I enter data in the range but when there is no data
in the range it returns a #DIV/0! error.

This looks unsightly on the sheet and was wondering if there was a way that
I could surpress this error when there is no data entered.

Thanks

John


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Averaging Blank Cells


Hello

try =AVERAGE(if(R76:R87)<0,r76:r87,false) and enter as an arry formula
with Ctrl+Shift+Enter

HTH


John Calder;291643 Wrote:
Hi

In cell R88 I have the following formula

=AVERAGE(R76:R87)

It works fine as soon as I enter data in the range but when there is no
data
in the range it returns a #DIV/0! error.

This looks unsightly on the sheet and was wondering if there was a way
that
I could surpress this error when there is no data entered.

Thanks

John



--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload -faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=81481

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Averaging Blank Cells

try

=AVERAGE(IF(R76:R87,R76:R87,))

CTRL+SHIFT+ENTER this formula as it is in array formula


On 1 Kwi, 13:04, John Calder
wrote:
Hi

In cell R88 I have the following formula

=AVERAGE(R76:R87)

It works fine as soon as I enter data in the range but when there is no data
in the range it returns a #DIV/0! error.

This looks unsightly on the sheet and was wondering if there was a way that
I could surpress this error when there is no data entered.

Thanks

John


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Averaging Blank Cells

Check for some numbers first:

=if(count(r76:r87)=0,"no numbers",average(r76:r87))



John Calder wrote:

Hi

In cell R88 I have the following formula

=AVERAGE(R76:R87)

It works fine as soon as I enter data in the range but when there is no data
in the range it returns a #DIV/0! error.

This looks unsightly on the sheet and was wondering if there was a way that
I could surpress this error when there is no data entered.

Thanks

John


--

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
Averaging numbers in a column while excluding blank spaces and zer c. murphy Excel Worksheet Functions 4 March 3rd 09 03:23 AM
Averaging blank or cells with Zeros in them. Glenn Excel Worksheet Functions 4 January 4th 09 10:51 PM
Maximum Number of Blank Cells between Non Blank Cells in a Range Mal Excel Worksheet Functions 5 November 3rd 07 08:21 AM
Averaging blank cells Scott W Excel Discussion (Misc queries) 2 July 8th 06 02:58 PM
Averaging Cells Based On Conditions in Neighboring Cells foofoo Excel Discussion (Misc queries) 3 June 21st 06 03:10 AM


All times are GMT +1. The time now is 11:13 AM.

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"