Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Number of Occurences In range

I have a range in a worksheet and need to progmatically determine the
number of occurences of each piece of data.

Can anyone help me out please. As an example cells A1:A10 might
contain:

A1 Fred
A2 Peter
A3 Peter
A4 Fred
A5 John
A6 Simon
A7 Paul
A8 Mark
A9 Luke
A10 Simon

I need to return:

Fred 2
Peter 2
John 1
Simon 2
Paul 1
Mark 1
Luke 1
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Number of Occurences In range

Hi

you can use COUNTIF worksheet function in code itself

see Chip's site at cpearson.com

hth

Tim

-----Original Message-----
I have a range in a worksheet and need to progmatically

determine the
number of occurences of each piece of data.

Can anyone help me out please. As an example cells A1:A10

might
contain:

A1 Fred
A2 Peter
A3 Peter
A4 Fred
A5 John
A6 Simon
A7 Paul
A8 Mark
A9 Luke
A10 Simon

I need to return:

Fred 2
Peter 2
John 1
Simon 2
Paul 1
Mark 1
Luke 1
.

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 number of occurences within a time range [email protected] Excel Discussion (Misc queries) 9 January 20th 13 05:54 PM
Count Number of occurences of several texts in a range of cells kbeirne Excel Worksheet Functions 3 July 28th 09 07:50 PM
How to count the occurences in my range with 2 characters only? Jen[_4_] Excel Worksheet Functions 5 June 27th 07 09:30 AM
counting occurences in data range (e.g 31-60) Chuck Excel Worksheet Functions 2 June 28th 06 02:09 PM
How do I count the number of alpha occurences in a range? CRM Excel Worksheet Functions 2 May 30th 05 04:08 PM


All times are GMT +1. The time now is 09:22 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"