Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Getting count of entries in a column


Hi Pawan

The below formula will give you the count of CA entries

'should return 2 with your example
=COUNTIF(A:A,"CA.*")

'should return 1 with your example
=COUNTIF(A:A,"WV.*")

If this post helps click Yes
---------------
Jacob Skaria


"Pawan" wrote:

Hello

I have an excel sheet with following data in column A:

CA
CA.SanFransisco
CA.PLeasanton
WV
WV.Matinsburg

There are hundreds of such entries in column A. I want to write a code which
will tell me how many entries are there for each state. e.g. In the above
case, I should get the result showing that CA has 2 entries and WV has 1
entry.

Is this possible and how?

Thanks in advance
Regards,
prm

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
count entries based on criteria in a different column ccKennedy Excel Worksheet Functions 2 January 9th 09 11:26 PM
Count entries in one column based on values in another column Kurt Excel Worksheet Functions 7 January 10th 07 09:29 PM
How can I count the no. of entries in a column. Barnali Excel Worksheet Functions 2 August 17th 06 12:20 PM
count duplicate entries in column khilari Excel Discussion (Misc queries) 3 April 17th 06 09:56 PM
How can I count the number of entries in a column? Dave Hacker New Users to Excel 3 November 24th 05 08:48 PM


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

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

About Us

"It's about Microsoft Excel"