Maybe:
Sub puutsw()
Dim i As Long, y As Long
With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
End With
For i = 7 To 48
y = Cells(Rows.Count, i).End(3).Row
For Each numrange In Range(Cells(2, i), Cells(y, i)).SpecialCells(xlConstants, xlNumbers).Areas
sumaddr = numrange.Address(False, False)
numrange.Offset(numrange.Count, 0).Resize(1, 1).Formula = "=IF(SUM(" & sumaddr & ")=0,"""",SUM(" & sumaddr & "))"
c = numrange.Count
Next numrange
Next i
nodata:
With Application
.ScreenUpdating = True
.Calculation = xlCalculationAutomatic
End With
End Sub
Bookmarks