Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Woody13
 
Posts: n/a
Default Macro to find and delete all FALSE statements

So i have a sheet filled with formulas and I have put IF,Then statements in
them to return FALSE is I don't get the result I want. However, I need to
erase all these FALSE results so they do not plot as zero on my chart.
Anyway to create a macro? Thanks.
  #2   Report Post  
Bernard Liengme
 
Posts: n/a
Default

You may not need a macro.
If you formulas are of the type =IF(A1<10,FALSE,A1), select the range and
use Edit | Replace to change FALSE to NA(). The NA() will show in cell as
#N/A and will be ignored by the chart.

best wishes

--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in email address


"Woody13" wrote in message
...
So i have a sheet filled with formulas and I have put IF,Then statements
in
them to return FALSE is I don't get the result I want. However, I need to
erase all these FALSE results so they do not plot as zero on my chart.
Anyway to create a macro? Thanks.



  #3   Report Post  
Woody13
 
Posts: n/a
Default

Thanks. You are correct but it makes it more difficult for me to go back and
review some of the information. Still, you suggestion was helpful.

"Bernard Liengme" wrote:

You may not need a macro.
If you formulas are of the type =IF(A1<10,FALSE,A1), select the range and
use Edit | Replace to change FALSE to NA(). The NA() will show in cell as
#N/A and will be ignored by the chart.

best wishes

--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in email address


"Woody13" wrote in message
...
So i have a sheet filled with formulas and I have put IF,Then statements
in
them to return FALSE is I don't get the result I want. However, I need to
erase all these FALSE results so they do not plot as zero on my chart.
Anyway to create a macro? Thanks.




  #4   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

You could record a macro as you do the following --

To delete the cells that have a FALSE result:
Select the cells with formulas
Choose EditGot To
Click the Special button
Select Formulas
Remove the check marks from all options except Logical
Click OK
Press the Delete key


Woody13 wrote:
So i have a sheet filled with formulas and I have put IF,Then statements in
them to return FALSE is I don't get the result I want. However, I need to
erase all these FALSE results so they do not plot as zero on my chart.
Anyway to create a macro? Thanks.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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



All times are GMT +1. The time now is 09:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"