+ Reply to Thread
Results 1 to 4 of 4

Count occurances without knowing the objects

  1. #1
    Registered User
    Join Date
    07-04-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    15

    Count occurances without knowing the objects

    Hi all. Hope I found the correct section. I have a problem which hits me now and then. Let's say I have a list of 1000 names. I want to count how many times each time occurs. Quite easy with a countif, but my before that I have to analyze which names the list actually consists of. (Theoretically, it could be the same name reaeated 1000 times or 1000 unique names with one occurance each.) This part I have no idea how to do. I guess I have to run it through with VBA in some way to gereate a new sheet with the names that the list consists of. After that I can do a countif. What do you say, what's the easiest way?

    Thanks in advance!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Count occurances without knowing the objects

    If you use a pivot table, it can list each unique name and the count of each name.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Count occurances without knowing the objects

    Say your list starts in A1 and fills downward through column A. If you put in B1:

    Please Login or Register  to view this content.
    and drag down, wherever a 1 occurs is a unique occurrence of that name.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  4. #4
    Registered User
    Join Date
    07-04-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Count occurances without knowing the objects

    Fast answers, nice
    @Ron Coderre, I have never used pivot tables but after some youtubing and testing, yes that seems to solve my problem!
    @mcmahobt. Doesn't really work for me as the cell gets a 1 the first time tha name comes up, a 2 the second time and so on. I would like a list where every unique name is just one one row. Please let me know if I didn't understand you right!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 05-11-2012, 03:38 AM
  2. need to find a max count without knowing what I'm counting (list of names)
    By Richard Neville in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 11:05 AM
  3. Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. Replies: 2
    Last Post: 07-25-2005, 07:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1