I have a list of Excel data set up like this.

```Items
1, 11, 3
4, 5, 6
7, 9, 12
15, 13, 4
7, 8, 9, 10, 1
14
1, 3, 7, 9
```

I want to make a count of each occurring number so that I end up with a result like this:

```Items   A2 Column
1           2
2           0
3           2
4           2
5           1
```

And so on. Are there any formulas I can use to count the frequency of each number? I've tried using the COUNTIF function, but the formula will often come out as 0 because it can't read each number separately in the cells. Using a Pivot Table created the same results as well.

Oct 30, 2022 in Others 631 views

## 1 answer to this question.

First split those integer values into their own cell: Data>>TextToColumns>>Delimited>>Comma>>OK

Second set up a table where 1 through whatever is listed in the rows, then you can use countif() to get the counts.

`=COUNTIF(\$A\$2:\$E\$8,A14)`

A14 is the first cell in your list of cells numbered from 1 to whatever, and \$A\$2:\$E\$8 is the set of cells produced by Text To Columns. You will have what you need if you copy it down to each row in your list of 1 to whatever.

• 63,420 points

## Get number of columns of a particular row in given excel using Java

Use: int noOfColumns = sh.getRow(0).getPhysicalNumberOfCells(); Or int noOfColumns = sh.getRow(0).getLastCellNum(); There ...READ MORE

## Calculate the number of days between a cell and today in excel?

Use the DATEDIF function when you want ...READ MORE

+1 vote

## Excel or Google formula to count occurrences of an 8-digit number within a text string

To match an eight-digit number, you may ...READ MORE

## Calculating the week number of a year in Excel

Here is my excel formula. =IF(AND(A1>=DATE(YEAR(A1),1,1),A1< ...READ MORE

## Calculate Birthdate from an age using y,m,d in Excel

Hi To Calculate the date, we can ...READ MORE

## Convert Rows to Columns with values in Excel using custom format

1 I having a Excel sheet with 1 ...READ MORE

## IF - ELSE IF - ELSE Structure in Excel

In this case, you can use nested ...READ MORE