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.

All current Excel versions. Also in Excel for the web and Google Sheets.

Syntax =FIXED(number, [decimals], [no_commas])

FIXED
=FIXED(1234.567,2)

Arguments

NameRequiredWhat to pass
numberRequiredThe number to round and convert.
decimalsOptionalDecimal places to keep. The default is 2.
no_commasOptionalFALSE, 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

=FIXED(B1,2)B2
Fixed
AB
1Number1234.567
2Text1,234.57
A picture of the sheet, not a live calculator.

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.