A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Select the cells and run this - change the 0 to the rounding level you want.
Bernie
Sub AddRounding()
Dim myCell As Range
Dim strForm As String
Application.EnableEvents = False
For Each myCell In Selection
strForm = Right(myCell.Formula, Len(myCell.Formula) - 1)
myCell.Formula = "=Round(" & strForm & ",0)"
Next myCell
Application.EnableEvents = True
End Sub
You could also select all the cells, and then apply the rounding to cells with formulas:
Sub AddRounding2)
Dim myCell As Range
Dim strForm As String
Application.EnableEvents = False
For Each myCell In Selection.SpecialCells(xlCellTypeFormulas)
strForm = Right(myCell.Formula, Len(myCell.Formula) - 1)
myCell.Formula = "=Round(" & strForm & ",0)"
Next myCell
Application.EnableEvents = True
End Sub