Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have set a cell equal to another cell.
Eg. If i set the cell B2 with the Formula "=A1" , so any value i type in in cell A1 would automatically update the cell in B2. The problem is that if i dont type in anything in A1, it will show "0" in B2. Is there a way to hide the "0" if no value is inputted in A1. Many thanks

there are two ways:
1) on excel 2003, got to Tools/Options... and on the View pane take the tick out the box where it says "zero values". On Excel 07 this is located in Office Button/Excel Options/Advanced/Display Options for this Worksheet (nice and easy to find, eh?)
2) Change your formula to be a bit more complex:
=IF(LEN(A1)=0,"",B1)

Jon, I assume you meant:
=IF(LEN(A1)=0,"",A1)
Other options include:
=IF(A1<>"",A1,"")
=IF(A1="","",A1)I'm sure there are many others.

We could play all day...
=IF(NOT(A1=(LEN(A1)-LEN(A1))),VLOOKUP(A1,A1:A1,1,0),"")
=IF(NOT(NOT(ISERROR(VLOOKUP(A1,A1:A1,1,0)))),"",LOOKUP(A1,A1:A1,A1:A1))

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |