eliminating zeros

  • Thread starter Thread starter Fernando Duran
  • Start date Start date
F

Fernando Duran

I linked two cells to get the information from other cell, but when this
cell is empty it prints "0". How can I eliminate this problem?
 
Hi
Cell C4, Cell D4 gets the value from C4.

On the worksheet itself you can usein D4 =IF(C4<>0, C4,"")

In VBA, Range("D4") = Application.IF(Range("C4")<>0,Range("C4"),"")

HTH
Andrew Bourke
 
When is sheet1 to sheet2, is the problem I have.

Ajtb said:
Hi
Cell C4, Cell D4 gets the value from C4.

On the worksheet itself you can usein D4 =IF(C4<>0, C4,"")

In VBA, Range("D4") = Application.IF(Range("C4")<>0,Range("C4"),"")

HTH
Andrew Bourke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top