Excel: numbers after decimal point
Solved
bjour
Posted messages
8544
Registration date
Status
Contributeur
Last intervention
-
Fgaye -
Fgaye -
Hello,
I need to create an Excel table that calculates formulas, percentages... no problem.
However, I pay attention to significant figures, and I would like to know what "phrase" to enter in my cell so that there are only two digits after the decimal point.
Thank you even for a starting answer!!
I need to create an Excel table that calculates formulas, percentages... no problem.
However, I pay attention to significant figures, and I would like to know what "phrase" to enter in my cell so that there are only two digits after the decimal point.
Thank you even for a starting answer!!
3 réponses
Hello,
in VBA it would look like this:
Sub significant_figures()
Columns("A:A").Select
Selection.NumberFormat = "0.00"
End Sub
All the numbers in the cells of column A will have 2 decimal places.
in VBA it would look like this:
Sub significant_figures()
Columns("A:A").Select
Selection.NumberFormat = "0.00"
End Sub
All the numbers in the cells of column A will have 2 decimal places.
but this does not completely solve the problem, it is better to choose the formula: =+ROUND ex +ROUND(A1,2) if it is 2 digits after the decimal point