how eliminate zeros in blank cells using paste link

G

Guest

RE: "pastelink" in excel 2003: blank cells in source worksheet become zeros
in detination worksheet. how can i eliminate them. thanks very much
 
R

RagDyeR

One way:

=IF(Sheet2!$C$2="","",Sheet2!$C$2)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


RE: "pastelink" in excel 2003: blank cells in source worksheet become zeros
in detination worksheet. how can i eliminate them. thanks very much
 
G

Gord Dibben

Method 1. Hide the zeros using Tools>Options>View. Uncheck "zero values"

Method 2. Use an IF formula in the linked cells.

=IF(ISBLANK(Sheet1!A1,"",Sheet1A1)

If you have a great whack of these, after you paste the links, run this macro
on the selected range.

Sub ISBLANK_Add()
Dim myStr As String
Dim cel As Range
For Each cel In Selection
If cel.HasFormula = True Then
If Not cel.Formula Like "=IF(ISBLANK*" Then
myStr = Right(cel.Formula, Len(cel.Formula) - 1)
cel.Value = "=IF(ISBLANK(" & myStr & "),""""," & myStr & ")"
End If
End If
Next
End Sub


Gord Dibben Excel MVP


On Sat, 16 Apr 2005 13:03:01 -0700, "sea kayaker" <sea
 

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

Top