+ Reply to Thread
Results 1 to 10 of 10

Thread: Counting Cells without repeat

  1. #1
    Registered User
    Join Date
    01-24-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    31

    Counting Cells without repeat

    I have a spreadsheet set up where I input a lot of data into a raw sheet and need to get some stats off of it. The problem I have is, I don't know how to count correctly. For example, I have a column for Name, Event, Time Start, Time End. In the name column one person will come up multiple times. I have been able to count how many time a name comes up, but what I want to do is count how many times a name comes up but only once per unique event.

    Example is attached to the thread.

    Basic question:
    How do I count the amount of unique events a person has attended?



    Worth noting is that there are consistently more rows added by the week or day when events happen.
    Attached Files Attached Files
    Last edited by Squirrel; 08-30-2011 at 07:51 PM.

  2. #2
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,593

    Re: Counting Cells without repeat

    Your profile states you are using 2003, but your posted sample is 2007 or later.

    See if this workbook is on the track you are looking for. (Based on 2003)
    Sort your data by "Name" (Column A)
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  3. #3
    Registered User
    Join Date
    01-24-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Counting Cells without repeat

    Sorry my profile is old, I have 2007 now that I am using at my home computer, not sure what the office computer is. I'm sure I can adapt it if it doesn't work. I haven't had any trouble yet. I'll take a look and let you know. Thanks.

  4. #4
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,300

    Re: Counting Cells without repeat

    Hi Squirrel,

    See if the attached does what you want. Pivots are easy to make and Refresh. Does my example give you the info you need?
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  5. #5
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,593

    Re: Counting Cells without repeat

    If you don't need this to work with pre-2007 versions, have a look at COUNTIFS(), it's a tad more efficient.
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  6. #6
    Registered User
    Join Date
    01-24-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Counting Cells without repeat

    That is very close to what I am looking for but actually too detailed. Although I will keep it for reference in case we also go that route. What I was looking for an output would be something like:

    Tom Green : 2 Appearances, 1 Event
    Tim Green: 1 Appearance, 1 Event
    Sam Red: 2 appearances, 2 events

    So in a table on a different sheet it would be:
    NAMES // APPEARANCES // EVENTS // HOURS

    (if you look at my other thread that was solved, I will be using this same technique to add the amount of hour each person has at events)

    Thanks.

  7. #7
    Registered User
    Join Date
    01-24-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Counting Cells without repeat

    In response to MarvinP..

    A pivot table does look nice with the data, it was a little different from my goals but close. I don't know much about pivot tables but apparently I should learn more. If you read my above reply it looks at roughly what my goal is. I will also be getting stats based on group... example below..

    NAME // GROUP (1,2,3,4) // APPEARANCES // EVENTS // HOURS

    And then separate stats on

    APPEARANCES per group, EVENTS per group, HOURS per group... and further breaking this down by month because on a separate sheet I have each event's information and the date it was.

    I don't know if anyone can solve all of these or just point me in the right direction... any help is appreciated including what has already been added.

  8. #8
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,593

    Re: Counting Cells without repeat

    Just for fun have a look at this 2007 and later workbook.

    Apologies, to much beer tonight ... ...
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.

  9. #9
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,300

    Re: Counting Cells without repeat

    How about...
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  10. #10
    Registered User
    Join Date
    01-24-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Counting Cells without repeat

    These are great help. I will show it around tomorrow and play with it. If anyone else comes up with anything let me know. These will all be a help to me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0