Format number as text with fixed decimals
=FIXED(number, [decimals], [no_commas])
| Parameter | Description |
|---|---|
number |
The number to round and format. |
decimals |
[optional] Number of decimals to use. Default is 2. |
no_commas |
[optional] Suppress commas. TRUE = no commas, FALSE = commas. Default is FALSE. |
In the example shown above, the formula in E5, copied down, is:
=FIXED(B5,C5,D5)
Number is the only required argument. By default, FIXED will round to 2 decimal places and insert commas for thousands:
=FIXED(1000) // returns "1,000.00"
=FIXED(1000,0) // returns "1,000"
=FIXED(1000,0,FALSE) // returns "1000"
The FIXED function can be useful when you want to concatenate a number with other text. The example below shows how the output from the PI function ca
="PI is about "&PI() // returns "PI is about 3.14159265358979"
="PI is about "&FIXED(PI()) // returns "PI is about 3.14"