## How to use the FACT function

The FACT function returns the factorial of a number.

Formula in cell C3:

=FACT(B3)

Example, 3! = 3*2*1 = 6

#### Table of Contents

## 1. FACT Function Syntax

FACT(*number*)

## 2. FACT Function Arguments

number |
Required. The number equal to or larger than 0 (zero) for which you want to calculate the factorial. |

If *number* is not an integer, it is truncated.

Returns an error if the *number *argument is a text value.

## 3. FACT Function example

The FACT function is useful if you want to calculate the number of permutations of a given set of elements.

The following set has three elements: [A, B, C].

3! = 3*2*1 = 6. You can rearrange [A, B, C] in six different permutations.

1, [A, B, C]

2, [A, C, B]

3, [B, A, C]

4, [B, C, A]

5, [C, A, B]

6, [C, B, A]

### 'FACT' Function examples

The following 6 articles have formulas containing the FACT function.

Create permutations [UDF]

Chris asks: Maximum Number Allowed is 4 digit and the number is from 0 to 9. After I fill in […]

Chris asks: Maximum Number Allowed is 4 digit and the number is from 0 to 9. After I fill in […]

List permutations no repetition [UDF]

This blog post describes how to create permutations, repetition is NOT allowed. Permutations are items arranged in a given order meaning […]

This blog post describes how to create permutations, repetition is NOT allowed. Permutations are items arranged in a given order meaning […]

List permutations with repetition [UDF]

This blog post demonstrates a custom function (UDF) that creates permutations. Repetition is allowed. The custom function lets you specify the […]

This blog post demonstrates a custom function (UDF) that creates permutations. Repetition is allowed. The custom function lets you specify the […]

List permutations with repetition and how many to choose from

This article demonstrates a macro that lets you create a list of permutations, repetitions are allowed, based on a number […]

This article demonstrates a macro that lets you create a list of permutations, repetitions are allowed, based on a number […]

Permutations with and without repetition

I discussed the difference between permutations and combinations in my last post, today I want to talk about two kinds […]

I discussed the difference between permutations and combinations in my last post, today I want to talk about two kinds […]

Return all combinations

Today I have two functions I would like to demonstrate, they calculate all possible combinations from a cell range. What […]

Today I have two functions I would like to demonstrate, they calculate all possible combinations from a cell range. What […]

### Functions in 'Math and trigonometry' category

The FACT function function is one of many functions in the 'Math and trigonometry' category.

Converts negative numbers to positive numbers.

Calculates the arccosine, or inverse cosine, of a number.

Calculates the inverse hyperbolic cosine of a number.

Calculates the inverse cotangent of a number.

Calculates the inverse hyperbolic cotangent of a number.

Perform different specific functions to a list or database.

Calculates the arcsine of a number.

Calculates the inverse hyperbolic sine of a number.

Calculates the arctangent of a number.

Calculates the arctangent of an angle using specific x- and y-coordinates.

Calculates the inverse hyperbolic tangent of a number.

Converts a number into a text representation with a given radix (base).

Rounds a number up to its nearest multiple.

Returns the number of combinations for a specific number of elements out of a larger group.

Calculates the number of combinations for a given number of elements from a larger group of elements.

Calculates the cosine of an angle.

Calculates the hyperbolic cosine of a number.

Calculates the cotangent of an angle specified in radians.

Calculates the hyperbolic cotangent of a hyperbolic angle.

Calculates the cosecant of an angle (radians).

Converts a text representation of a number in a given base into a decimal number.

Calculates degrees from radians.

Rounds a number up to the nearest even whole number.

Returns e raised to the power of a number, e equals 2.71828182845904.

Returns the factorial of a number.

Returns the double factorial of a number.

Rounds a number to the specified number of decimals, formats the number in decimal format using a period and commas, and returns the result as text.

Rounds a number down to the nearest integer or to the nearest multiple of significance.

Rounds a number down to the nearest integer or nearest multiple of significance.

Calculates the greatest common divisor that divides all given arguments without a remainder.

Removes the decimal part from positive numbers and returns the whole number (integer) except negative values are rounded down to the nearest integer.

Calculates the least common multiple. The least common multiple is the smallest positive integer that is a multiple of all integer arguments. Use the LCM function to find fractions with different denominators.

Lets you name calculations

Calculates the natural logarithm of a number. Natural logarithms are based on the constant e.

Calculates the logarithm of a number to a specific base.

Calculates the logarithm of a number using the base 10.

Calculates the inverse matrix for a given array.

Calculates the matrix product of two arrays, an array as the same number of rows as array1 and columns as array2.

Returns the remainder after a number is divided by divisor.

Calculates a number rounded to a given multiple.

Calculates the ratio of the factorial of a sum of values to the product of factorials.

Calculates the identity matrix for a given dimension

Returns the number pi (¶).

Calculates a number raised to a power.

Returns the product of the numbers given in the argument.

Returns the integer portion of a division.

Converts degrees to radians.

Calculates a random real number greater than or equal to 0 and less than 1.

Creates an array of random numbers

Returns a random whole number between the numbers you specify.

Rounds a number based on the number of digits you specify.

Rounds a number down based on the number of digits to which you want to round the number.

Calculates a number rounded up based on the number of digits to which you want to round the number.

Calculates the secant of an angle.

Calculates the hyperbolic secant of an angle.

Creates a list of sequential numbers

Calculates the sum of a power series based on a formula.

Returns the sign of a number. 1 for a positiv number, 0 (zero) for a 0 (zero) and -1 for a negative number.

Calculates the sine of an angle.

Calculates the hyperbolic sine of a number.

Calculates the positive square root.

Returns a subtotal from a list or database, you can choose from a variety of arguments that determine what you want the function to do.

Allows you to add numerical values, the function returns the sum in the cell it is entered in. The SUM function is cleverly designed to ignore text and boolean values, adding only numbers.

Sums numerical values based on a condition.

Adds numbers based on criteria.

Calculates the product of corresponding values and then returns the sum of each multiplication.

Calculates the sum of the squares of the arguments.

Calculates the sum of the difference of squares of corresponding values in two arrays.

Calculates the sum of the sum of squares of corresponding values in two arrays.

Calculates the sum of squares of differences of corresponding values in two arrays.

Calculates the tangent of an angle.

Calculates the hyperbolic tangent of a number.

Removes the fractional part of the number to an integer.

## How to comment

How to add a formula to your comment<code>Insert your formula here.</code>

Convert less than and larger than signsUse html character entities instead of less than and larger than signs.

< becomes < and > becomes >

How to add VBA code to your comment[vb 1="vbnet" language=","]

Put your VBA code here.

[/vb]

How to add a picture to your comment:Upload picture to postimage.org or imgur

Paste image link to your comment.

Contact OscarYou can contact me through this contact form