.SetNumberFormat()
Attach a display format to a numeric value so the format travels with the value.
Syntax
=value.SetNumberFormat([number_format])Microsoft documentation
Check the arguments, supported editions and behavior of this function in Microsoft’s reference.
Microsoft referenceNew FORMATNUMBER Function to Add or Remove Number Formatting. EMT 1941
Practice .SetNumberFormat()
Suppose A2 contains a rich Excel entity. Set its number format to "0.00" using its dot method.
| A | B | |
|---|---|---|
| 1 | Entity | |
| 2 | Batch 17 |
Show example formula
=A2.SetNumberFormat("0.00") Lesson quiz
Answer three questions to see your level in this lesson.
