ID EN
#Math

FACT

Excel Functions

Find the factorial of a number

Syntax

EXCEL
=FACT(number)

Arguments

Parameter Description
number The number to get the factorial of.

Return Value

The factorial of a number

Details

The Excel FACT function returns the factorial of a given number. A factorial is the product of a whole number and all the positive whole numbers below it. It is written with an exclamation point, like 3!, which is pronounced "three factorial". For example, three factorial is calculated like this: Here are the factorials for four, five, and six: In Excel, you use the FACT function to calculate a factorial. FACT takes just one argument, number, which should be a positive integer. If number is not an integer, the decimal portion of number will be removed before the factorial is calculated. Factorials are the building block behind the formulas used to count combinations and permutations. For a full explanation, see Combinations and permutations in Excel. If number is not an integer it will be

Examples

Example 1

The Excel FACT function returns the factorial of a given number. A factorial is the product of a whole number and all the positive whole numbers below

EXCEL
3! = 3 × 2 × 1 = 6
Example 2

Here are the factorials for four, five, and six:

EXCEL
4! = 4 × 3 × 2 × 1 = 24
5! = 5 × 4 × 3 × 2 × 1 = 120
6! = 6 × 5 × 4 × 3 × 2 × 1 = 720
Examples
EXCEL
=FACT(3) // returns 6
=FACT(4) // returns 24
=FACT(5) // returns 120
=FACT(6) // returns 720
Examples

If number is not an integer it will be truncated to an integer:

EXCEL
=FACT(3.2) // returns 6
Examples

When number is zero, FACT returns 1:

EXCEL
=FACT(0) // returns 1
Examples

If number is negative, FACT returns the #NUM! error:

EXCEL
=FACT(-3) // returns #NUM!

See Also

COMBIN COMBINA PERMUT PERMUTATIONA FACTDOUBLE