PC Review


Reply
Thread Tools Rate Thread

Average Formula to display blank cell if named range is blank

 
 
Rachael F
Guest
Posts: n/a
 
      22nd Feb 2008
Hello

I have looked through the Excel posts but could not find an answerto the
following question. I would be grateful for any help.

I would like a formula that will display the average of columns A:C in
column D. This works fine if there are values in columns A:C, eg
5.0+5.0+7.0=5.6

If, however, the cells in A:C are blank, #DIV/0! is displayed.

A B C D
5.0 5.0 7.0 5.6
4.5 4.5 5.0 4.6
#DIV/0!

I would like column D to be blank if A:C are blank
& if values are displayed in A:C for the average value to be displayed in
column D.

I am using Excel 2000.

Many thanks.

Rachael
 
Reply With Quote
 
 
 
 
John Bundy
Guest
Posts: n/a
 
      22nd Feb 2008
you can do an if(iserror(formula),"",formula
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Rachael F" wrote:

> Hello
>
> I have looked through the Excel posts but could not find an answerto the
> following question. I would be grateful for any help.
>
> I would like a formula that will display the average of columns A:C in
> column D. This works fine if there are values in columns A:C, eg
> 5.0+5.0+7.0=5.6
>
> If, however, the cells in A:C are blank, #DIV/0! is displayed.
>
> A B C D
> 5.0 5.0 7.0 5.6
> 4.5 4.5 5.0 4.6
> #DIV/0!
>
> I would like column D to be blank if A:C are blank
> & if values are displayed in A:C for the average value to be displayed in
> column D.
>
> I am using Excel 2000.
>
> Many thanks.
>
> Rachael

 
Reply With Quote
 
Rachael F
Guest
Posts: n/a
 
      22nd Feb 2008
Thank you very much, John. An iserror formula did the trick.

Best wishes.

Rachael

"John Bundy" wrote:

> you can do an if(iserror(formula),"",formula
> --
> -John
> Please rate when your question is answered to help us and others know what
> is helpful.
>
>
> "Rachael F" wrote:
>
> > Hello
> >
> > I have looked through the Excel posts but could not find an answerto the
> > following question. I would be grateful for any help.
> >
> > I would like a formula that will display the average of columns A:C in
> > column D. This works fine if there are values in columns A:C, eg
> > 5.0+5.0+7.0=5.6
> >
> > If, however, the cells in A:C are blank, #DIV/0! is displayed.
> >
> > A B C D
> > 5.0 5.0 7.0 5.6
> > 4.5 4.5 5.0 4.6
> > #DIV/0!
> >
> > I would like column D to be blank if A:C are blank
> > & if values are displayed in A:C for the average value to be displayed in
> > column D.
> >
> > I am using Excel 2000.
> >
> > Many thanks.
> >
> > Rachael

 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      22nd Feb 2008
=IF(COUNT(A2:C2)=0,"",AVERAGE(A2:C2))
--
David Biddulph

"Rachael F" <(E-Mail Removed)> wrote in message
news:2B1B2FB6-2824-43BE-8C2E-(E-Mail Removed)...
> Hello
>
> I have looked through the Excel posts but could not find an answerto the
> following question. I would be grateful for any help.
>
> I would like a formula that will display the average of columns A:C in
> column D. This works fine if there are values in columns A:C, eg
> 5.0+5.0+7.0=5.6
>
> If, however, the cells in A:C are blank, #DIV/0! is displayed.
>
> A B C D
> 5.0 5.0 7.0 5.6
> 4.5 4.5 5.0 4.6
> #DIV/0!
>
> I would like column D to be blank if A:C are blank
> & if values are displayed in A:C for the average value to be displayed in
> column D.
>
> I am using Excel 2000.
>
> Many thanks.
>
> Rachael



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Locating 1st blank cell in named range Don Guillett Microsoft Excel Programming 1 14th Dec 2006 12:56 AM
Re: Locating 1st blank cell in named range Don Guillett Microsoft Excel Programming 0 13th Dec 2006 11:54 PM
RE: Locating 1st blank cell in named range =?Utf-8?B?UGFwYURvcw==?= Microsoft Excel Programming 0 13th Dec 2006 11:53 PM
Re: Locating 1st blank cell in named range Trevor Shuttleworth Microsoft Excel Programming 1 13th Dec 2006 11:03 PM
How to detect when a named cell (range) is Blank in VBA? Richard Microsoft Excel Programming 3 26th Jan 2006 05:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 AM.