What is the FIXED function?
=FIXED(number, [decimals], [no_commas])FIXED rounds a number to the given number of decimal places and converts it to text with a comma every three digits.
Unlike ROUND, the result is text, not a number. Check on the strip above which digits rounding removes and where commas are added.
Arguments
- number
- The number to round and convert to text.
- decimals
- Digits after the decimal point. Defaults to 2. A negative number rounds to the left of the decimal point.
- no_commas
- TRUE leaves out commas. Omitted or FALSE adds them.
FIXED examples
Example 1. Basic
=FIXED(1234.567, 1)"1,234.6".
Example 2. Negative decimals
=FIXED(1234.567, -1)"1,230".
Example 3. Without commas
=FIXED(-1234.567, -1, TRUE)"-1230".
Example 4. decimals left out
=FIXED(44.332)Two decimal places: "44.33".
Common mistakes
Calculating with the result
The result is text, so SUM and similar functions do not count it as a number. Use ROUND for values you calculate with.
Confusing it with cell formatting
Cell formatting changes only how a value looks; FIXED turns the value itself into text.
FAQ
- How is it different from TEXT?
- FIXED(x, 2) gives the same result as TEXT(x, "#,##0.00"). TEXT supports many more formats, such as dates and %.
- How many decimals?
- Up to 127.