ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Replace the final value (0) created by fomulas (https://www.excelbanter.com/excel-worksheet-functions/207488-replace-final-value-0-created-fomulas.html)

jwang036

Replace the final value (0) created by fomulas
 
I wrote formulas something like =if(a1=0,0,1) all over a worksheet. Now I
want to empty all the cells that show "0". I used "Replace" function, but it
replaces the "0" in my formula, which causes errors.

By the way, for some complicated reasons I can't use =if(a1="","",1). I have
to find which cells should be "0", and then clear them. Thanks!


jwang036

Replace the final value (0) created by fomulas
 
Also, I only have one option in "Look in", which is formula. Don't know how
to find back "value"?

€œjwang036€ç¼–写:

I wrote formulas something like =if(a1=0,0,1) all over a worksheet. Now I
want to empty all the cells that show "0". I used "Replace" function, but it
replaces the "0" in my formula, which causes errors.

By the way, for some complicated reasons I can't use =if(a1="","",1). I have
to find which cells should be "0", and then clear them. Thanks!


muddan madhu

Replace the final value (0) created by fomulas
 
try this

the cell has formula - use copy | paste special | values | ok and then
use replace function.

or

go to tools | options | view tab | uncheck zero values | ok


On Oct 23, 2:39 pm, jwang036
wrote:
Also, I only have one option in "Look in", which is formula. Don't know how
to find back "value"?

"jwang036"±àд£º



I wrote formulas something like =if(a1=0,0,1) all over a worksheet. Now I
want to empty all the cells that show "0". I used "Replace" function, but it
replaces the "0" in my formula, which causes errors.


By the way, for some complicated reasons I can't use =if(a1="","",1). I have
to find which cells should be "0", and then clear them. Thanks!- Hide quoted text -


- Show quoted text -



Gord Dibben

Replace the final value (0) created by fomulas
 
Have you tried Autofilter to filter out anything not a "0" and clearing
contents of those cells?

Would have to be run on each column.

Or run a macro.

Sub zero_gone()
For Each cell In ActiveSheet.UsedRange
If cell.Value = 0 Then
cell.Value = ""
End If
Next
End Sub


Gord Dibben MS Excel MVP


On Thu, 23 Oct 2008 02:27:01 -0700, jwang036
wrote:

I wrote formulas something like =if(a1=0,0,1) all over a worksheet. Now I
want to empty all the cells that show "0". I used "Replace" function, but it
replaces the "0" in my formula, which causes errors.

By the way, for some complicated reasons I can't use =if(a1="","",1). I have
to find which cells should be "0", and then clear them. Thanks!



jwang036

Replace the final value (0) created by fomulas
 
They could have been good ideas. Unfortunately, I have to keep all the
formulas and the Excel is in fact linked to Access, even I turn off "0" view
in Excel, access will still show all the zeros.
Thanks any way!

€œmuddan madhu€ç¼–写:

try this

the cell has formula - use copy | paste special | values | ok and then
use replace function.

or

go to tools | options | view tab | uncheck zero values | ok


On Oct 23, 2:39 pm, jwang036
wrote:
Also, I only have one option in "Look in", which is formula. Don't know how
to find back "value"?

"jwang036"编写:



I wrote formulas something like =if(a1=0,0,1) all over a worksheet. Now I
want to empty all the cells that show "0". I used "Replace" function, but it
replaces the "0" in my formula, which causes errors.


By the way, for some complicated reasons I can't use =if(a1="","",1). I have
to find which cells should be "0", and then clear them. Thanks!- Hide quoted text -


- Show quoted text -




jwang036

Replace the final value (0) created by fomulas
 
The code works well. Thanks!

So far I only have 500 rows x 15 columns. It can grow very fast, say tens of
thousands of rows. Will checking cell by cell become very slow?

€œGord Dibben€ç¼–写:

Have you tried Autofilter to filter out anything not a "0" and clearing
contents of those cells?

Would have to be run on each column.

Or run a macro.

Sub zero_gone()
For Each cell In ActiveSheet.UsedRange
If cell.Value = 0 Then
cell.Value = ""
End If
Next
End Sub


Gord Dibben MS Excel MVP


On Thu, 23 Oct 2008 02:27:01 -0700, jwang036
wrote:

I wrote formulas something like =if(a1=0,0,1) all over a worksheet. Now I
want to empty all the cells that show "0". I used "Replace" function, but it
replaces the "0" in my formula, which causes errors.

By the way, for some complicated reasons I can't use =if(a1="","",1). I have
to find which cells should be "0", and then clear them. Thanks!





All times are GMT +1. The time now is 07:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com