PC Review


Reply
Thread Tools Rate Thread

clear formula that does not return a value automatically?

 
 
Q
Guest
Posts: n/a
 
      17th Feb 2009
Hello:

I have a number of cells that has an If statement. If it is false, then the
cell will be set to "". Is there a way to automatically clear the formula if
the evaluation is false?

The reason I want to clear the formula is when I create a graph based on the
cells with formula. If a cell has a formula, but no value, Excel still plots
that point and assumes it to be 0. If I manually delete those formula that
does not return a value, then Excel will exclude those plots in the plot even
though the empty range is part of a series.

If there is not a way to clear a formula the returns nothing, would it be
possible to suppress those points in the graph?

Thanks

Q
 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      17th Feb 2009
Make the result of the formula NA() instead of ""

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Q" <(E-Mail Removed)> wrote in message
news:CC01FF22-3DA1-45F9-906D-(E-Mail Removed)...
> Hello:
>
> I have a number of cells that has an If statement. If it is false, then
> the
> cell will be set to "". Is there a way to automatically clear the formula
> if
> the evaluation is false?
>
> The reason I want to clear the formula is when I create a graph based on
> the
> cells with formula. If a cell has a formula, but no value, Excel still
> plots
> that point and assumes it to be 0. If I manually delete those formula
> that
> does not return a value, then Excel will exclude those plots in the plot
> even
> though the empty range is part of a series.
>
> If there is not a way to clear a formula the returns nothing, would it be
> possible to suppress those points in the graph?
>
> Thanks
>
> Q


 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      17th Feb 2009
Hi,

It's better to suppress the points by returning #N/A instead of "" because
#N/A is ignored when charting. A su=implistics example of how to return NA

=IF(C2="",NA(),33)

Mike

"Q" wrote:

> Hello:
>
> I have a number of cells that has an If statement. If it is false, then the
> cell will be set to "". Is there a way to automatically clear the formula if
> the evaluation is false?
>
> The reason I want to clear the formula is when I create a graph based on the
> cells with formula. If a cell has a formula, but no value, Excel still plots
> that point and assumes it to be 0. If I manually delete those formula that
> does not return a value, then Excel will exclude those plots in the plot even
> though the empty range is part of a series.
>
> If there is not a way to clear a formula the returns nothing, would it be
> possible to suppress those points in the graph?
>
> Thanks
>
> Q

 
Reply With Quote
 
Q
Guest
Posts: n/a
 
      17th Feb 2009
Thanks Niek.

"Niek Otten" wrote:

> Make the result of the formula NA() instead of ""
>
> --
> Kind regards,
>
> Niek Otten
> Microsoft MVP - Excel
>
> "Q" <(E-Mail Removed)> wrote in message
> news:CC01FF22-3DA1-45F9-906D-(E-Mail Removed)...
> > Hello:
> >
> > I have a number of cells that has an If statement. If it is false, then
> > the
> > cell will be set to "". Is there a way to automatically clear the formula
> > if
> > the evaluation is false?
> >
> > The reason I want to clear the formula is when I create a graph based on
> > the
> > cells with formula. If a cell has a formula, but no value, Excel still
> > plots
> > that point and assumes it to be 0. If I manually delete those formula
> > that
> > does not return a value, then Excel will exclude those plots in the plot
> > even
> > though the empty range is part of a series.
> >
> > If there is not a way to clear a formula the returns nothing, would it be
> > possible to suppress those points in the graph?
> >
> > Thanks
> >
> > Q

>
>

 
Reply With Quote
 
Q
Guest
Posts: n/a
 
      17th Feb 2009
Thanks Mike! It works!

"Mike H" wrote:

> Hi,
>
> It's better to suppress the points by returning #N/A instead of "" because
> #N/A is ignored when charting. A su=implistics example of how to return NA
>
> =IF(C2="",NA(),33)
>
> Mike
>
> "Q" wrote:
>
> > Hello:
> >
> > I have a number of cells that has an If statement. If it is false, then the
> > cell will be set to "". Is there a way to automatically clear the formula if
> > the evaluation is false?
> >
> > The reason I want to clear the formula is when I create a graph based on the
> > cells with formula. If a cell has a formula, but no value, Excel still plots
> > that point and assumes it to be 0. If I manually delete those formula that
> > does not return a value, then Excel will exclude those plots in the plot even
> > though the empty range is part of a series.
> >
> > If there is not a way to clear a formula the returns nothing, would it be
> > possible to suppress those points in the graph?
> >
> > Thanks
> >
> > Q

 
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
Automatically paste cells that return a value, otherwise maintain existing formula. Cameron Stewart Microsoft Excel Programming 2 23rd Jul 2004 10:35 AM
Automatically paste cells that return a value, otherwise maintain existing formula. Cameron Stewart Microsoft Excel Programming 0 22nd Jul 2004 06:40 AM
Re: Clear a Carriage Return from a String Value David McRitchie Microsoft Excel Programming 0 5th Aug 2003 09:54 PM
Re: Clear a Carriage Return from a String Value RC- Microsoft Excel Programming 0 5th Aug 2003 09:54 PM
Re: Clear a Carriage Return from a String Value JS Microsoft Excel Programming 0 5th Aug 2003 09:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:32 PM.