Excel TV ExcelTV

Factorials In Excel – How To Calculate

Updated
Factorials In Excel – How To Calculate

Have you ever tried to form a band but found it difficult to figure out what possible combinations could be made? Well, the example seems a bit stretched. But we do face problems regarding arrangements and combinations in our everyday life. From choosing which friends to go to a concert with (since you were only able to get 4 tickets) or deciding which seating arrangement would let you sit next to your crush in the cinema are all such problems.

Do not worry, Oz is here to unleash the power of Excel in solving these problems.

So, it’s time to get started and form a band!

bullet step 1The Formula

For example, if you had to calculate how many groups of 4 you can form out of 6 people, there is formula you can use. It does seem odd, but we will make it work.

N represents the total number of people you have. So, n = 6 for this problem. R is the number of people in the group you want to form. So, r = 4 in our example.

Now what is this ‘!’ doing in the equation. Well, Excel knows what it is. The given formula is a fraction: numerator is ‘n!’ and the denominator is a product of ‘(n-r)!’ and ‘r!’. If we can evaluate these expressions, then we can form the fraction and have the result with us.factorals1

bullet step 2Factorial

The ‘!’ actually represents a factorial. So, what is meant by ‘3!’? Just use the built-in Excel function =FACT(3) and you will see which number it represents. Hence, for our example, we will input into Excel the formula =FACT(6)/(FACT(6-4)*FACT(4)) and that’s all. The answer turns out to be 15.

Remember, whatever the ‘!’ applies to, put that inside the function FACT(…) and you can then proceed with dealing them as ordinary numbers.factorals2

bullet 3A Neat Trick

This complicated formula has been built into Excel to ease our problems. In our example, we had n=6 and r=4. We can directly use =COMBIN(6,4) to see that 15 groups of four can be from 6 people.factorals3

Get The Download

[thrive_link color=‘teal’ link=‘https://media.excel.tv/wp-content/uploads/how-many-in-the-band.xlsx’ target=’_self’ size=‘small’ align=‘aligncenter’]Download the File[/thrive_link]

What’s next?

Remember that Excel has been built to solve many of your problems. The next time you stumble on to a problem you cannot get your head around, probably Excel can do it for you!

Also, share this newly discovered function with your friends. And, know that combinations have very interesting properties, so go play with them. Compare =COMBIN(6,4) and =COMBIN(6,2) and see what is being talked about.

Written by

Jamani Arsalan

Consultant, International Professional Services

  • Project Management
  • Statistical Analysis
  • Health Analytics
I am a consultant, currently based in Middle East, at an international professional services firm. My work largely revolves around project management, and statistical analysis. And my professional interests include developing my knowledge within the discipline of health analytics.

Read more articles by Jamani Arsalan

Editorial standards

Fact Checking & Editorial Guidelines

Every article on Excel TV is held to a published editorial standard. The goal: accurate, current, and useful — without filler.

  1. Expert review. Drafts on technical Excel topics are reviewed by a contributor with hands-on, working knowledge of the feature being covered.
  2. Source validation. Claims about Excel behavior are tested in current Microsoft 365 builds. Third-party product claims are sourced from the vendor's own documentation.
  3. Disclosure. Affiliate links, sponsorships, and any commercial relationships that influenced a piece are disclosed in-line and at the foot of the article.
  4. Updates. Articles are revisited when Microsoft ships changes that affect the content. The most recent revision date is shown on every post.

Spot a problem? Email editor@excel.tv and we will look at it.

Subject-matter review

Reviewed by Subject Matter Experts

Technical Excel articles are reviewed by contributors with verifiable, hands-on experience in the topic — not generalist editors.

  • Qualified reviewers. Reviewers include Microsoft Excel MVPs, working business-intelligence practitioners, and Excel TV editorial staff. See each author's page for credentials.
  • Current to a known Excel build. Procedural articles state which Excel version they were validated against. Where Microsoft has since changed behavior, the article carries an inline update note.
  • Clarity check. Reviewers verify steps are reproducible by a reader at the assumed skill level — not just technically correct in a vacuum.

Want to contribute or review for Excel TV? See the about page.

Comments (2)

Historical comments preserved from the WordPress archive. Commenting is no longer active.

  1. Rafael Suarez

    Nice one
    Thank

  2. Teerapat Suwannaroochi

    Let’s cell A1 contain n! such as 4! then cell C1 contain formula like this
    =FACT(1*LEFT(A1,LEN(A1)-1))