The COMBINA function in Google Sheets returns the number of ways to choose a set of items where repetition is allowed and order does not matter. In plain terms, it calculates combinations with replacement. To use it, type =COMBINA(n, k) into a cell, where n is the total number of items and k is the number of items to choose. Both arguments must be non-negative integers, and the function returns an error if n is less than 1 or if k is negative. The result is always a whole number. This guide walks you through using COMBINA correctly, avoiding common mistakes, and fixing errors when they appear.

What You'll Need

  • A Google account with access to Google Sheets (sheets.google.com).
  • A spreadsheet open in a browser or the Google Sheets mobile app.
  • Basic familiarity with entering formulas (starting with =).

Step-by-Step

  1. Open your spreadsheet. Go to sheets.google.com and open an existing file or create a new blank spreadsheet. The steps below work the same in the browser and the mobile app, though the formula bar is easier to use on a computer.
  2. Select the cell where you want the result. Click or tap an empty cell. This is where the number of combinations will appear.
  3. Type the formula. Start with an equals sign, then the function name and parentheses: =COMBINA(. Google Sheets will show a tooltip with the syntax as you type.
  4. Enter the first argument (n). This is the total number of distinct items available. For example, if you have 5 flavors of ice cream, type 5. You can also reference a cell that contains the number, such as A1.
  5. Add a comma and the second argument (k). This is the number of items you are choosing. For example, if you are picking 3 scoops, type 3. The full formula looks like =COMBINA(5, 3).
  6. Close the parenthesis and press Enter. The cell will display the result. For =COMBINA(5, 3), the result is 35. This means there are 35 possible combinations of 3 scoops from 5 flavors when repetition is allowed and order does not matter.
  7. Copy the formula down or across if needed. Drag the fill handle (the small square at the bottom-right of the cell) to apply the same formula to other rows or columns. Relative references will adjust automatically.
  8. Format the result if desired. The output is a number; you can apply number formatting, but no special formatting is required.

Common Mistakes

  • Using negative numbers. COMBINA requires both arguments to be non-negative. A negative k returns a #NUM! error. A negative n also returns #NUM!.
  • Passing non-integer values. If you supply decimals, Google Sheets truncates them to integers. For example, COMBINA(5.9, 3.2) is treated as COMBINA(5, 3). This can lead to unexpected results if you meant to round.
  • Confusing COMBINA with COMBIN. COMBIN calculates combinations without repetition. COMBINA allows repetition. For example, COMBIN(5, 3) returns 10, while COMBINA(5, 3) returns 35.
  • Forgetting that n must be at least 1. If n is 0 or less, COMBINA returns #NUM!. There is no valid combination when there are no items to choose from.
  • Using text instead of numbers. If an argument is text that cannot be coerced to a number, you get a #VALUE! error. Ensure cells contain numeric values.
  • Assuming order matters. COMBINA ignores order. If you need permutations with repetition, use PERMUTATIONA instead.

Tips

  • Use cell references instead of hard-coded numbers so you can change inputs without editing the formula.
  • Combine COMBINA with other functions like SUM or ARRAYFORMULA to calculate multiple scenarios at once.
  • Remember that COMBINA counts combinations with replacement, which is useful for problems like choosing items from a menu where you can pick the same item more than once.
  • If you need to allow repetition but order matters, use PERMUTATIONA(n, k), which returns n^k.
  • For large numbers, the result can be very large. Google Sheets handles large integers up to 2^53, but formatting may switch to scientific notation. You can format the cell as a plain number to see all digits.

Troubleshooting

If you see an error, check the following:

  • #NUM! error: One or both arguments are negative, or n is less than 1. Ensure n ≥ 1 and k ≥ 0.
  • #VALUE! error: An argument is non-numeric text that cannot be converted. Check that cells contain numbers, not labels like "five".
  • #NAME? error: The function name is misspelled. It should be COMBINA, not COMBIN or COMBINAT.
  • Wrong result: Verify you are using COMBINA and not COMBIN. Also check that you have not swapped n and k. The formula is COMBINA(n, k), where n is the total pool and k is the number chosen.
  • Formula not calculating: Ensure the cell is formatted as a number, not text. If the formula appears as text, the cell may be formatted as plain text; change it to automatic or number format.
  • Unexpected truncation: If you entered decimals, remember they are truncated. Use ROUND or INT explicitly if you need control.

If the formula still does not work, try re-typing it from scratch, or test with simple numbers like =COMBINA(2, 2) which should return 3.

Frequently Asked Questions

What does COMBINA actually calculate?

It returns the number of combinations with repetition allowed, where order does not matter. The formula is (n + k - 1)! / (k! * (n - 1)!).

Can I use COMBINA with non-integer numbers?

Yes, but Google Sheets truncates decimals to integers before calculating. For example, 5.9 becomes 5.

What is the difference between COMBINA and COMBIN?

COMBIN does not allow repetition; COMBINA does. For example, COMBIN(5,3)=10, COMBINA(5,3)=35.

Why do I get a #NUM! error?

Most likely n is less than 1 or k is negative. Both must be non-negative, and n must be at least 1.

Can COMBINA return a decimal?

No, it always returns a whole number because it counts combinations.

Is there a limit to how large the arguments can be?

Google Sheets can handle large numbers, but extremely large inputs may cause the result to exceed the maximum integer precision (2^53) and display in scientific notation. For practical purposes, keep inputs reasonable.