Formualizer Docs

MULTINOMIAL

Returns the multinomial coefficient for one or more values.

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

=MULTINOMIAL(number1, [number2], ...)

Arguments

ArgumentTypeRequiredDefault
number1numberRequired—
number2numberOptional—

Accepts a variable number of arguments. Minimum: 1.

Remarks

  • Each input is truncated toward zero before factorial is applied.

Error cases

  • Any negative term returns #NUM!.
  • Values that require factorials outside 0..=170 return #NUM!.

Examples

Count the arrangements of three groups with different sizes.

Formula =MULTINOMIAL(2,3,4)

Expected result 1260

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?.

Compare four groups of size one.

Formula =MULTINOMIAL(1,1,1,1)

Expected result 24

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 single zero-size group gives one empty arrangement.

Formula =MULTINOMIAL(0)

Expected result 1

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 group cannot have negative size.

Formula =MULTINOMIAL(-1,2)

Expected result #NUM!

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?.

Non-integers are truncated first

Formula =MULTINOMIAL(1.9,2.2)

Expected result 3

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

Why does MULTINOMIAL return #NUM! for large terms?

If any required factorial falls outside 0..=170, the function returns #NUM!.

Implementation

Engine source

On this page