Pergunta

I have excel columns as follows:

Name,Name1
Name,Name3
Name1,Name3
Name3,Name4,Name

Now I want a function that will give count of each unique name on all rows. For example output

Name = 3
Name1 = 2
Name3 = 3
Name4 = 1
Foi útil?

Solução

Step 1: Select the data and use text to columns to split them into seperate columns:

enter image description here

Result:

enter image description here

Step 2

Move your data to 1 single column:

enter image description here

Step 3:

Create a pivot table

enter image description here

Though you could always use a VBA solution.

Outras dicas

Assuming the names are spread over three columns, pick a cell and enter:

="Name = " & COUNTIF(A:C,"Name")

and then the same for the other names.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top