8 Factorials and Combinations in a Spreadsheet
Brokk Toggerson
As stated in the introduction, we will be relying on spreadsheets to do all our computation in this class. I presume you have already become familiar with the basics of a spreadsheet in Appendices
Here will will show you how to compute factorials and combinations in a spreadsheet.
Factorials
To do a factorial in Excel, you simply type
=FACT(*)
Where the leading = tells the spreadsheet to that this is a formula whose value should be calculated and the “*” is whatever number you want to take the factorial of. For example, if you want to calculate 170! (the largest number that google sheets will take the factorial of!), then you would type
=FACT(170)
And the sheet will return 7.25742E+306.
Combinations
What if you want to calculate a combination? For example, what if you have 3 items to spread over 5 bins, ? You use the COMBIN
function:
=COMBIN(5,3)
This will calculate .