andreas,
Hasit's option might be suitable, depending on whether you want the extra column(s) of formulas.
My understanding is that you want to modify your existing formulas to include the ROUND function - WITHOUT having to manually edit each and every formula.
If this is the case, then the following VBA code should be simple enough and flexible enough to make your task easy and fairly quick.
I have created two separate routines, which you should attach keyboard shortcuts to - for example attach <Control> Q to the routine for rounding to 2 decimal places, and <Control> W for rounding to zero decimal places.
The code includes a line which takes the cursor down to the next row each time you activate it, so it will be a matter of repeatedly using <Control> Q, for example, until you reach the end of the formulas which you want to add the ROUND function with 2 decimal places. Or, you can alternate from one to the other where necessary.
Here's the code...
Dim frm As String
Sub Rnd_2()
frm = ActiveCell.Formula
frm = Mid(frm, 2, 999)
frm = "=Round(" & frm & ",2)"
ActiveCell.Formula = frm
Selection.NumberFormat = "0.00_);(0.00)"
ActiveCell.Offset(1, 0).Select
End Sub
Sub Rnd_0()
frm = ActiveCell.Formula
frm = Mid(frm, 2, 999)
frm = "=Round(" & frm & ",0)"
ActiveCell.Formula = frm
Selection.NumberFormat = "0.00_);(0.00)"
ActiveCell.Offset(1, 0).Select
End Sub
Please advise as to how you make out, or whether you
require any further assistance.
Regards, ...Dale Watson dwatson@bsi.gov.mb.ca