I need to show two significant digits, but it is important that the original data does not get lost.
Currently I have a macro that uses ROUND
, however this changes the actual number instead of changing only the decimal places.
cell.Value = Round(cell, 1 - (1 + Int(Log(Abs(cell)) / Log(10))))
For other numbers I have
cell.NumberFormat = "#"
Then Excel shows only how many numbers I tell it to but I cannot get a variable number of digits, right?
Is there a way to combine these to so that excel will show two significant numbers?