PC Review


Reply
Thread Tools Rate Thread

Counting Occurrences

 
 
JH
Guest
Posts: n/a
 
      16th Jul 2009
Hello,

For starters, I am using Excel 07.

I have a list of phone numbers which are all in one column. I am trying to
count the number of times each phone number appears on this list. I would
usually just sort and manually count, however, the current list is over 3,500
rows long so that is not an option. Could someone please advise me of how to
accomplish this?

Also, I am aware that this can be done with pivot tables but I need to be
able to modify the list once I have the number of occurrences.

TIA
 
Reply With Quote
 
 
 
 
Bernd P
Guest
Posts: n/a
 
      16th Jul 2009
Hello,

Google for "pstat sulprobil".

Regards,
Bernd
 
Reply With Quote
 
Per Jessen
Guest
Posts: n/a
 
      16th Jul 2009
Hi

First create a list of unique numbers. Select the list, goto Data > Filter >
Advanced filter > Select: Copy to another location > Check "Unique records
only" > Copy to: Select a single cell where you want to place the unique
list > OK

Suppose the original list are in column A and Unique numbers i colum B, Use
this formula in colmn C:

=countif(A2:A100=B2) (headings in row 1)

Copy the formula down as required.

Hopes this helps.
....
Per

"JH" <(E-Mail Removed)> skrev i meddelelsen
news:2D07DFAF-B53C-4DFA-8E04-(E-Mail Removed)...
> Hello,
>
> For starters, I am using Excel 07.
>
> I have a list of phone numbers which are all in one column. I am trying to
> count the number of times each phone number appears on this list. I would
> usually just sort and manually count, however, the current list is over
> 3,500
> rows long so that is not an option. Could someone please advise me of how
> to
> accomplish this?
>
> Also, I am aware that this can be done with pivot tables but I need to be
> able to modify the list once I have the number of occurrences.
>
> TIA


 
Reply With Quote
 
john
Guest
Posts: n/a
 
      16th Jul 2009
this may do what you want - paste in standard module.

Sub CountNumbers()
'extract list
With Sheets("Sheet1")
'assume phone numbers in col A
'change as required
'Also assume col J empty - change as required
.Columns("A:A").AdvancedFilter _
Action:=xlFilterCopy, _
CopyToRange:=.Range("J1"), Unique:=True

lr = .Cells(.Rows.Count, "J").End(xlUp).Row

'add heading
.Range("K1").Value = "Count"

'assume your col has a heading
'start from row 2
For na = 2 To lr

.Cells(na, 11).Formula = "=COUNTIF(A:A,J" & na & ")"

Next

End With
End Sub
--
jb


"JH" wrote:

> Hello,
>
> For starters, I am using Excel 07.
>
> I have a list of phone numbers which are all in one column. I am trying to
> count the number of times each phone number appears on this list. I would
> usually just sort and manually count, however, the current list is over 3,500
> rows long so that is not an option. Could someone please advise me of how to
> accomplish this?
>
> Also, I am aware that this can be done with pivot tables but I need to be
> able to modify the list once I have the number of occurrences.
>
> TIA

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting occurrences dpwicz Microsoft Excel Misc 2 2nd Oct 2008 06:25 PM
Counting occurrences GARY Microsoft Excel Misc 3 13th Aug 2008 10:06 PM
Counting occurrences GARY Microsoft Excel Misc 3 13th Aug 2008 09:51 PM
Counting number occurrences thermometer Microsoft Excel Discussion 3 6th Jun 2006 08:06 PM
Counting Occurrences James Burstall Microsoft Excel Misc 1 20th Nov 2003 04:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:14 PM.