hassan,
Excel formulae will not allow you to "tell" another cell to change. It can only change the cell containing the formula. You will have to use a Macro.
Option Explicit
Dim c As Long, f As Long, m As Long, r As Long
Sub NOZEROES()
'Find last row.
With Sheet1
f = .Cells(.Rows.Count, "A").End(xlUp).Row
If f = 1 Then Exit Sub
'Find last column
r = .Cells(1, .Columns.Count).End(xlToLeft).Column
Look in each row
For m = 2 To f
Look in each column
For c = 1 To r
If the cell is Zero, then clear it and all cells above it in that column
If .Cells(m, c) = 0 Then
.Range(.Cells(1, c), .Cells(m, c)).ClearContents
End If
Move to next column and repeat
Next
Move to next row and repeat
Next
End With
End Sub
Ochimus
Bookmarks