Closed Thread
Results 1 to 4 of 4

Ignore Duplicates in Counts

  1. #1
    Registered User
    Join Date
    07-15-2007
    Posts
    1

    Exclamation Ignore Duplicates in Counts

    Hey,

    I have a list in which I have a number set up for people. This is a list that counts the people regardless of how many go to see different staff members. Each person is allowed to come multiple times and receive help from different people. I don't need to know how many times they came but just who came.

    How do I work it so that when I want a count, it ignores duplicate id numbers? I don't want them erased, because I still need them to be recorded but I do need the number of people who requested our service.

    I use Excel rarely so I'm not very familiar with the functions. I use the standard formulas set up with it.

    Thanks.

  2. #2
    Forum Contributor snasui's Avatar
    Join Date
    07-15-2007
    Location
    Songkhla, Thailand
    MS-Off Ver
    2010, 365
    Posts
    167
    Quote Originally Posted by dfq
    Hey,

    I have a list in which I have a number set up for people. This is a list that counts the people regardless of how many go to see different staff members. Each person is allowed to come multiple times and receive help from different people. I don't need to know how many times they came but just who came.

    How do I work it so that when I want a count, it ignores duplicate id numbers? I don't want them erased, because I still need them to be recorded but I do need the number of people who requested our service.

    I use Excel rarely so I'm not very familiar with the functions. I use the standard formulas set up with it.

    Thanks.

    Try this:

    If A1:A10 is your data range enter the following formula in B1.

    =Sumproduct((A1:A10<>"")/Countif(A1:A10,A1:A10&""))

    Enter

    HTH.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Welcome to the forum.

    Please read rules below. Multiple post of the same question is not permitted

    This link should help

    Counting Distinct Entries In A Range

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Thread closed for Crossing posting.

    Please read forum rules below. If you agree to them PM me and I will unlock the thread

    VBA Noob

Closed 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.6.0 RC 1