ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counters (https://www.excelbanter.com/excel-worksheet-functions/12704-counters.html)

Paul

Counters
 

How can I setup a counter to count the number of times a
word appears in one column. The column I have contains
city names and I'd like another column to display the
number of times the City name appears.

Example...

Column 1 Column2 Column 3

Liverpool Liverpool= 3
Liverpool London= 2
Liverpool Edinburgh= 4
London
London
Edinburgh
Edinburgh
Edinburgh
Edinburgh

Any help would be muchly appreciated

JE McGimpsey

A Pivot Table would be the most flexible way, and it's easy.

http://peltiertech.com/Excel/Pivots/pivotstart.htm

However, if you want to use Worksheet functions, enter your city names
in B1:Bx, then use:

C1: =COUNTIF(A:A,B1)

and copy down as far as required.


In article ,
"Paul" wrote:


How can I setup a counter to count the number of times a
word appears in one column. The column I have contains
city names and I'd like another column to display the
number of times the City name appears.

Example...

Column 1 Column2 Column 3

Liverpool Liverpool= 3
Liverpool London= 2
Liverpool Edinburgh= 4
London
London
Edinburgh
Edinburgh
Edinburgh
Edinburgh

Any help would be muchly appreciated




Thanks man, worked a treat

-----Original Message-----
A Pivot Table would be the most flexible way, and it's

easy.

http://peltiertech.com/Excel/Pivots/pivotstart.htm

However, if you want to use Worksheet functions, enter

your city names
in B1:Bx, then use:

C1: =COUNTIF(A:A,B1)

and copy down as far as required.


In article ,
"Paul" wrote:


How can I setup a counter to count the number of times

a
word appears in one column. The column I have contains
city names and I'd like another column to display the
number of times the City name appears.

Example...

Column 1 Column2 Column 3

Liverpool Liverpool= 3
Liverpool London= 2
Liverpool Edinburgh= 4
London
London
Edinburgh
Edinburgh
Edinburgh
Edinburgh

Any help would be muchly appreciated

.



All times are GMT +1. The time now is 09:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com