To count the number of times specific numbers appear in a list contained within a single cell in Excel, you can use the COUNTIF function. However, since the numbers are in a single cell, you will first need to split them into separate values. Here’s a step-by-step approach:
- Split the numbers: If the numbers are separated by commas, you can use the
TEXTSPLIT function (available in Excel 365) to split them into an array.
- Count occurrences: You can then use
COUNTIF to count how many times each number appears.
For example, if your numbers are in cell A1:
=COUNTIF(TEXTSPLIT(A1, ","), "1")
=COUNTIF(TEXTSPLIT(A1, ","), "2")
=COUNTIF(TEXTSPLIT(A1, ","), "3")
This will give you the count of how many times 1, 2, and 3 appear in the list.
If you are using an older version of Excel that does not support TEXTSPLIT, you would need to manually separate the values into different cells or use a more complex formula with array functions.
References: