#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default new to excel

I am working with a large amount of information, one of which is names. I
need to know how many times a name, first and last is given in the
spreadsheet. The problem is that i have over 3000 names. Is there a way for
me to collect this information?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default new to excel

I would put/transfer all the names to a single column. The I would use a
Pivot Table to count the number of times each name appears. See:


http://www.contextures.com/xlPivot07.html#Unique
--
Gary's Student


"baldwin" wrote:

I am working with a large amount of information, one of which is names. I
need to know how many times a name, first and last is given in the
spreadsheet. The problem is that i have over 3000 names. Is there a way for
me to collect this information?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default new to excel

Using the example from vba help index for FINDNEXT, modifided to find a in
col a and if b is in col b count it

Sub countmatches()
lr = Cells(Rows.Count, "a").End(xlUp).Row
With Range("a2:a" & lr)
Set c = .Find("a", LookIn:=xlValues)'last name
If Not c Is Nothing Then
firstaddress = c.Address
Do
If c.Offset(, 1) = "b" Then mc = mc + 1'first name
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address < firstaddress
End If
End With
MsgBox mc

End Sub


--
Don Guillett
SalesAid Software

"baldwin" wrote in message
...
I am working with a large amount of information, one of which is names. I
need to know how many times a name, first and last is given in the
spreadsheet. The problem is that i have over 3000 names. Is there a way
for
me to collect this information?



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
Stop excel from dropping the 0 in the beginning of a number? Rosewood Setting up and Configuration of Excel 12 April 4th 23 02:12 PM
Excel docs not saving as excel docs Beth Excel Discussion (Misc queries) 6 September 12th 06 02:39 AM
Open Excel 2003 from Windows Explorer pmpjr Excel Discussion (Misc queries) 9 September 11th 06 03:58 PM
Need suggestions for some uses of Ms Excel Bible John Excel Discussion (Misc queries) 1 February 27th 06 05:30 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM


All times are GMT +1. The time now is 06:46 PM.

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"