Function · Convert text and numbers
Excel FIXED function
The Excel FIXED function rounds a number and returns text with a fixed number of decimals. 1234.567 to two decimals is the text 1,234.57.
Syntax =FIXED(number, [decimals], [no_commas])
=FIXED(1234.567,2)Arguments
| Name | Required | What to pass |
|---|---|---|
| number | Required | The number to round and convert. |
| decimals | Optional | Decimal places to keep. The default is 2. |
| no_commas | Optional | FALSE, the default, includes thousands separators. TRUE leaves them out. |
Examples
Round 1234.567 to the cent and store it as text
=FIXED(1234.567,2)Result 1,234.57
| A | B | |
|---|---|---|
| 1 | Number | 1234.567 |
| 2 | Text | 1,234.57 |
FIXED rounds, then converts to text with a set number of decimals. 1234.567 to two places is the text 1,234.57, comma included. Pass TRUE as the third argument and the comma drops, leaving 1234.57. The rounding follows the same half-up rule as ROUND. The difference is the type. ROUND stays a number. FIXED is text, so it lines up in a label and disappears from SUM.
DOLLAR is FIXED plus a currency symbol. TEXT is the general version, where you write the format yourself. Use FIXED when the decimal count is the whole format and the result is going into a sentence or a export that must be text.