Excel Function: FIXED

Purpose

The FIXED function converts a numeric value, or a value that can be interpreted as one, into a text value. The FIXED function never expresses results in scientific notation and its output is always a value of type text. Values supplied to its arguments control the number of digits in the result’s mantissa and the presence of the digit grouping symbol. The operating system’s number formatting settings control:

Invocations of the FIXED function take the form:

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

Limitations

Arguments

ArgumentArgument typeDescription
numberMandatoryA numeric value to be transformed into text.
decimalsOptional. Defaults to 2 if omitted.An integer which:
  • determines how many digits will appear in the result’s mantissa.
  • controls the number of decimal places to which the result will be rounded.
no_commasOptional. Defaults to FALSE if omitted.A logical value which determines if the result will contain digit grouping symbols.
ValueDescription
TRUEDigit grouping symbols will be omitted from the result.
FALSEDigit grouping symbols will be included in the result.

Related Functions

FunctionExamplePurpose

Error Conditions

Error valueCondition typeCondition
#VALUE!Bad argumentThe value supplied to the number argument could not be interpreted as being a number.
#VALUE!RuntimeThe result generated by the FIXED function was greater than 255 characters in length.

Examples

ExampleFormulaResultDescription
1=FIXED(1000000000.12345,4,TRUE)1000000000.1235Convert a large-positive number with 5 digits in its mantissa to text.
2=FIXED(1000000000.12345,4,FALSE)1,000,000,000.1235Convert a large-positive number with 5 digits in its mantissa to text.
3=FIXED(0.001293,7,TRUE)0.0012930Convert a small-positive number with 6 digits in its mantissa to text.
4=FIXED(0.001293,7,FALSE)0.0012930Convert a small-positive number with 6 digits in its mantissa to text.
  • digit grouping symbols are omitted from the result because
    • they can only appear to the left of the decimal point.
    • 4 digits need to appear to the left of the decimal point for them to appear.
  • the mantissa is rounded to 7 decimal places
    • 0.001293 becomes 0.0012930
5=FIXED(9.421E+21,8,TRUE)9421000000000000000000.00000000Convert a number with no mantissa expressed in scientific notation into text.
6=FIXED(9.421E+21,8,FALSE)9,421,000,000,000,000,000,000.00000000Convert a number with no mantissa expressed in scientific notation into text.
7=FIXED(-1000000000.12345,4,TRUE)-1000000000.1235Convert a large-negative number with 5 digits in its mantissa to text.
  • digit grouping symbols are omitted from the result because no_commas is TRUE.
  • the result is prefixed with a minus symbol (-) to indicate it is negative.
  • the mantissa is rounded to 4 decimal places.
    • 0.12345 becomes 0.1235.
8=FIXED(-1000000000.12345,4,FALSE)-1,000,000,000.1235Convert a large-negative number with 5 digits in its mantissa to text.
  • digit grouping symbols are included in the result because no_commas is FALSE.
  • the result is prefixed with a minus symbol (-) to indicate it is negative.
  • the mantissa is rounded to 4 decimal places.
    • 0.12345 becomes 0.1235.