# How to use the FACT Function in Excel

In this article, we will learn about how to use the FACT function in Excel.
FACT function is a mathematical operator used to get the factorial of a number. Factorial of a number (n) is calculated using the below show formula.
n = 1 x 2 x 3 x …. x (n-1) x n
The FACT function returns the factorial of the input number. FACT function takes the product of numbers starting from 1 and goes up to value n
Syntax:

=FACT (number)

Let’s understand this function using it in an example. Here we have some values which we will be providing to the function and to see what the function returns.
Use the formula:

=FACT(A2)

A2 : number
Here argument to the formula is taken as cell reference. As you can see the formula returns the Factorial of the number 1 is 1.

Now copy the formula in other cells using Ctrl + D shortcut key. These are the results returned by the FACT function.

Use the FACT function with other function to get results.

Notes:

1. The function returns #NUM! Error, if the argument to the function is negative numbers or text without using quotes.
2. The function returns #VALUE! Error, if the argument to the function is text with quotes or text given in as cell reference.
3. If the number is in decimal then excel truncates it to integer and then return the value

Hope you understood how to use FACT function and referring cell in Excel. Explore more articles on Excel function here. Please feel free to state your query or feedback for the above article.

Related Article:

How to use the FACTDOUBLE Function in Excel

How to use the Excel POWER function

Popular Articles:

50 Excel Shortcuts to Increase Your Productivity

How to use the VLOOKUP Function in Excel

How to use the COUNTIF in Excel 2016

How to use the SUMIF Function in Excel

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.