Formualizer Docs

FIXED

Formats a number as text with fixed decimal places.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

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

Arguments

ArgumentTypeRequiredDefault
numbernumberRequired—
decimalsnumberOptional2
no_commaslogicalOptionalfalse

Return type

Can return text.

Remarks

  • Default decimal places is 2 when omitted.
  • Third argument controls comma grouping (TRUE disables commas).
  • Values are rounded to the requested decimal precision.

Error cases

  • Numeric coercion failures return #VALUE!.

Examples

Format a number with the default precision and digit grouping.

Formula =FIXED(1234.567)

Expected result 1,234.57

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Use one decimal place and suppress the grouping separator.

Formula =FIXED(1234.567,1,TRUE)

Expected result 1234.6

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Format zero without decimal digits.

Formula =FIXED(0,0)

Expected result 0

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

A nonnumeric amount cannot be formatted as a number.

Formula =FIXED("amount",2)

Expected result #VALUE!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Fixed with commas

Formula =FIXED(12345.678, 1, FALSE)

Expected result 12,345.7

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Fixed without commas

Formula =FIXED(12345.678, 1, TRUE)

Expected result 12345.7

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

What does the third argument control?

Set it to TRUE to suppress thousands separators; FALSE keeps comma grouping.

Implementation

Engine source

On this page