Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
The Finance Base
The Money Desk · Blog
Re:

How to Calculate Combinations and Permutations in Excel

Use Excel’s COMBIN, COMBINA, PERMUT, or PERMUTATIONA function based on whether order matters and whether selections can repeat.
From TheFinanceBase Team5 min to read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Excel has four functions for counting selections and arrangements. Choose the function by answering two questions: Does order matter? and Can an item be used more than once?

Problem Excel function Example Result
Order does not matter; no repetition COMBIN =COMBIN(8,2) 28
Order does not matter; repetition allowed COMBINA =COMBINA(4,3) 20
Order matters; no repetition PERMUT =PERMUT(3,2) 6
Order matters; repetition allowed PERMUTATIONA =PERMUTATIONA(3,2) 9

These functions are listed by Microsoft for Microsoft 365, Excel for the web, Excel 2024, Excel 2021, Excel 2019, and Excel 2016, although behavior and availability can vary by build or platform. See Microsoft’s Excel function reference.

As an Amazon Associate I earn from qualifying purchases.

Combinations vs. permutations: the decision rule

A combination counts selections where internal order is irrelevant. Choosing Alice and Bob for a two-person team is the same group as choosing Bob and Alice.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A permutation counts ordered selections or arrangements. Assigning Alice to first place and Bob to second is different from assigning Bob to first and Alice to second.

#1 Best Overall
Sale
TI-30XIIS Scientific Calculator Texas Instruments, Black
  • Fundamental, two-line calculator that combines statistics and advanced scientific functions for high school math and science
  • Two-line display shows the entry and calculated result at the same time for easy understanding of the calculation
  • Fraction features, conversions, and basic scientific and trigonometric functions
  • Solar and battery powered
  • Approved for use on SAT, ACT and AP exams

Next ask whether a choice can be reused:

No repetition Repetition allowed
Order does not matter COMBIN COMBINA
Order matters PERMUT PERMUTATIONA

“Repetition allowed” means that the same choice may be selected again during the calculation. It does not automatically mean that duplicate labels in a worksheet list are distinct objects.

Calculate combinations with COMBIN

Use COMBIN when you choose k items from n available items, order does not matter, and an item cannot be selected twice.

=COMBIN(number, number_chosen)

For example:

=COMBIN(8,2)

The result is 28: there are 28 distinct two-person groups from eight people.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a reusable worksheet, place the total number of items in A2 and the number selected in B2:

Cell Value
A2 8
B2 2
C2 =COMBIN(A2,B2)

Microsoft documents the underlying formula as:

n! / (k! × (n-k)!)

See Microsoft’s COMBIN documentation.

Calculate combinations with repetition using COMBINA

Use COMBINA when order does not matter but a category or item may be selected more than once. For example, choosing three scoops from four ice-cream flavors allows vanilla, vanilla, and chocolate.

=COMBINA(number, number_chosen)
=COMBINA(4,3)

The result is 20. The mathematical formula is:

(n+k-1)! / (k! × (n-1)!)

With cell references, use =COMBINA(A2,B2). This is not the same as COMBIN(A2,B2): the latter treats each available item as usable only once. Read Microsoft’s COMBINA documentation.

Rank #2
Sale
Texas Instruments TI-30XS MultiView Scientific Calculator
  • View multiple calculations at the same time: Compare results and explore patterns on-screen with the MultiView display that supports up to four lines
  • See math exactly as it appears in textbooks: Display math expressions, symbols and stacked fractions exactly the way they appear in textbooks — no need to adapt to a technical syntax; provides quick access to frequently used functions
  • Scientific notation output: View scientific notation with the proper superscripted exponents and see the output in scientific notation
  • Explore (x,y) table of values: Students can easily explore an (x,y) table of values for a given function automatically or by entering specific x values
  • The TI-30XS MultiView scientific calculator is ideal for general math, Pre-Algebra, Algebra 1 and 2, Geometry, Statistics, general science, Biology and Chemistry

Calculate permutations with PERMUT

Use PERMUT when order matters and each item can be used only once. Typical examples include assigning gold, silver, and bronze positions or filling ranked positions from a group of candidates.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
=PERMUT(number, number_chosen)
=PERMUT(3,2)

The result is 6. For a larger example, =PERMUT(100,3) returns 970,200.

The formula is:

n! / (n-k)!

If A2 contains 10 and B2 contains 3, =PERMUT(A2,B2) returns 720. See Microsoft’s PERMUT documentation.

Calculate permutations with repetition using PERMUTATIONA

Use PERMUTATIONA when order matters and each position can reuse any of the available choices. This is the model for many PIN, password, or symbol-slot calculations when reuse is permitted.

=PERMUTATIONA(number, number_chosen)
=PERMUTATIONA(3,2)

The result is 9. With symbols A, B, and C in two ordered positions, the outcomes are:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

AA, AB, AC, BA, BB, BC, CA, CB, CC

The mathematical formula is n^k. Thus, =PERMUTATIONA(10,3) returns 1,000. Microsoft’s reference for this function is available at PERMUTATIONA.

Rank #3
CATIGA Scientific Calculators with Graphic Functions, Graphing Calculators with Multiple Modes, Scientific Calculators for Students, High School or College Courses, Calculadora Cientifica, CS-229
  • Scientific Calculator with Graphic Function: All-in-one scientific and graphing calculator. Supports plotting functions, analyzing graphs, and solving complex equations. Displays graphs and formulas simultaneously for clear visualization. Ideal for algebra, calculus, and exam prep.
  • Compact and Comfortable Design: This scientific and graphing calculator sized at 7 x 3.3 inches for a balanced and ergonomic feel. Fits easily in one hand or on a desk without taking up space. Ideal for long study sessions, test environments, and everyday academic or professional use; smooth button layout supports efficient input and navigation.
  • Multiple Modes and 360+ Functions: Includes angle measurement, calculation, and display modes for flexible use across subjects. This scientific and graphing calculator supports over 360 functions such as fractions, complex numbers, statistics, linear regression, standard deviation, and variable solving. Ideal for mastering algebra, geometry, trigonometry, and advanced math applications.
  • Durable and Portable Design: Built with an anti-drop body that resists everyday impacts for long-term use. This scientific and graphing calculator is lightweight and slim for easy carrying in a backpack or pocket that includes a protective case to guard the screen and buttons during travel or storage.
  • If you cannot turn on the calculator, please press the reset button on the back! If you have any further problems, we offer a limited warranty of 365 days. Please contact us and we will give you an answer within 24 hours.

Use FACT for factorials and full arrangements

A factorial multiplies every positive integer from a number down to 1:

n! = 1 × 2 × 3 × ... × n

Excel calculates it with:

=FACT(number)
=FACT(5)

The result is 120. Excel also defines zero factorial as one, so =FACT(0) returns 1. See Microsoft’s FACT documentation.

To arrange all six distinct items, use:

=FACT(6)

The result is 720, equivalent to =PERMUT(6,6). This is different from arranging only some of the items.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Manual combination and permutation formulas

Factorials are useful for learning the mathematics or auditing a worksheet, although the named functions make the spreadsheet’s intent clearer.

Manual combination formula:

=FACT(n)/(FACT(k)*FACT(n-k))

For eight items and two selected:

=FACT(8)/(FACT(2)*FACT(6))

This returns 28.

Manual permutation formula:

=FACT(n)/FACT(n-k)

For three items arranged in two positions:

=FACT(3)/FACT(1)

This returns 6. In production workbooks, prefer COMBIN and PERMUT where possible because they communicate the calculation directly and reduce the chance of mistyping a factorial expression.

Important input rules and error messages

#NUM!

#NUM! generally means that the numeric arguments violate the particular function’s constraints. Common causes include negative values or choosing more items than are available.

Rank #4
Franklin Scientific Graphing Calculator with 3 Operating Modes - Scientific Calculator Includes 20 Built-in graphs - Ideal for Beginner and Advanced Courses with Protective Cover - Black
  • Advanced Scientific Calculators: Equipped with essential tools for solving complex equations, this device supports a wide range of subjects from algebra to calculus, making it the ideal math calculator for both students and professionals.
  • Graphing Capabilities: This graphic calculator features built-in graphing functions, allowing users to visualize data and equations. Ideal for use in classrooms as one of graphing office calculators.
  • Algebra Simplified: The algebra calculator functionality simplifies and solves equations, fractions, and algebraic expressions efficiently, making it a reliable tool for tackling math problems of varying difficulty.
  • Ideal for Office and Study: Designed as a multifunctional math calculator, this device excels in both academic and professional settings, handling complex statistics, probability, and geometry tasks with ease.
  • Comprehensive Graphing and Functions: As a graphic calculator, it’s ideal for advanced users who need detailed graphs, whether for school projects, business calculations, or scientific research.

For COMBIN, Microsoft specifies invalid results when number or number_chosen is negative, or when number is less than number_chosen. PERMUT also requires a positive number. The repetition functions have their own constraints, so check the relevant Microsoft page rather than applying one rule to every function.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A basic validation wrapper for COMBIN is:

=IF(OR(A2<0,B2<0,A2<B2),"Check inputs",COMBIN(A2,B2))

For PERMUT, also reject a zero total:

=IF(OR(A2<=0,B2<0,A2<B2),"Check inputs",PERMUT(A2,B2))

For edge cases involving zero selections or zero available choices, test the exact function and arguments in the Excel version you use.

#VALUE!

#VALUE! usually indicates that one or both arguments are not numeric. Check for headers included in a reference, numbers stored as text, words such as “eight,” hidden spaces, or imported values that contain unexpected characters.

If the cells contain numeric text that Excel can convert, try:

=COMBIN(VALUE(A2),VALUE(B2))

VALUE will not repair arbitrary words or malformed imported data. To validate first:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
=IF(AND(ISNUMBER(A2),ISNUMBER(B2)),COMBIN(A2,B2),"Enter numbers")

Decimal arguments

Microsoft documents these functions as truncating non-integer arguments rather than rounding them. For example, COMBIN(8.9,2.9) is treated as though the arguments were 8 and 2. If decimals should be rejected, validate them explicitly:

Best Value
Sale
Texas Instruments TI-34 MultiView Scientific Calculator
  • Intermediate, four-line scientific calculator with advanced fraction capabilities
  • Ideal for middle school math and science, including Pre-Algebra, Algebra 1 and 2, and Geometry
  • Approved for use on SAT, ACT, and AP exams
  • Compare results and explore patterns on-screen with the MultiView display that supports up to four lines.
  • Display math expressions, symbols and stacked fractions exactly the way they appear in textbooks with MathPrint feature. Provides quick access to frequently used functions
=IF(OR(A2<>INT(A2),B2<>INT(B2)),"Use whole numbers",COMBIN(A2,B2))

Also confirm that the values are nonnegative and that the chosen quantity does not exceed the available quantity.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Do not confuse repetition with duplicate values

COMBINA and PERMUTATIONA model the reuse of choices. They do not automatically count unique arrangements of a list containing duplicate values.

For the letters in AAB, PERMUTATIONA(2,3) would model three positions filled from two choices with reuse allowed. That is not the same question as finding unique arrangements of the specific multiset AAB.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The unique arrangements of AAB are AAB, ABA, and BAA. The standard multiset formula is:

n! / (m1! × m2! × ... × mr!)

For AAB:

=FACT(3)/FACT(2)

This returns 3. If your worksheet contains duplicate records, decide whether duplicates represent repeatable categories, separate physical items, or identical values that should be counted only once. The correct model depends on that distinction.

Using the results in probability calculations

These functions return counts, not probabilities. A probability normally requires:

favorable outcomes / total outcomes

For example, a lottery calculation might use COMBIN to count the total number of unordered ticket combinations, then divide a favorable count by that total:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
=favorable_count/COMBIN(total_numbers,numbers_chosen)

The appropriate function depends on the lottery’s actual rules: whether order matters, whether numbers can repeat, and whether every outcome is equally likely. Do not use a combination result as a probability without forming the relevant ratio.

Quick reference

Situation Formula Example result
Select 2 from 8; order irrelevant =COMBIN(8,2) 28
Select 3 from 4 types; repetition allowed =COMBINA(4,3) 20
Arrange 2 positions from 3; no reuse =PERMUT(3,2) 6
Fill 2 ordered slots from 3 symbols; reuse allowed =PERMUTATIONA(3,2) 9
Arrange all 5 distinct objects =FACT(5) 120
Select 3 from 10; order irrelevant =COMBIN(10,3) 120
Arrange 3 from 10 =PERMUT(10,3) 720
Choose 3 from 10 with repetition =COMBINA(10,3) 220
Arrange 3 positions from 10 with repetition =PERMUTATIONA(10,3) 1,000

For most spreadsheet calculations, identify order first, then repetition. Enter the total number available as the first argument and the number chosen as the second, and validate the inputs before relying on the result.

Quick Recap

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More post from the Money Desk

  1. The Money DeskBlogTheFinanceBase09 OCT 267 minMortgage Escrow FAQs: Taxes, Insurance, Shortages, and Refunds
  2. The Money DeskBlogTheFinanceBase09 OCT 265 minHow Mortgage Escrow Accounts Work and What Homeowners Pay For
  3. The Money DeskBlogTheFinanceBase09 OCT 265 minHow to Read a Stock Chart, Volume and Market-Cap Data
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.