#1   Report Post  
Paul
 
Posts: n/a
Default 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
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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

  #3   Report Post  
 
Posts: n/a
Default


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

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"