+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    09-24-2008
    Location
    London UK
    Posts
    15

    Finding unique values in a column

    I have to produce some reports on a work team's performance over a specified time period. The data is easily extracted from the SQL work database as a .csv file which I import into Excel. Each job has a job number which is recorded in a column in the .csv. My problem is that each contact with a job is recorded in a row in the .csv file, so that for instance job no 7453 may appear on four or five rows. I thought there would be a function which would tell me how many unique job numbers there are, but if there is I can't find it. As it is, I have a .csv file which runs to 2,500-odd rows but probably only refers to four or five hundred jobs.

    I'm feeling like a complete numpty with this, and would be grateful for any help offered.
    Last edited by Moondog; 03-18-2010 at 07:57 AM.

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,143

    Re: Finding unique values in a column

    To count unique values in a column use something like:

    =SUMPRODUCT((A1:A100<>"")/COUNTIF(A1:A100,A1:A100&""))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,140

    Re: Finding unique values in a column

    If you're looking for a list of those unique numbers, rather than a count, highlight the list, go to Advanced Filter, select Copy to Another Location, pick the location, then check Unique records only.

  4. #4
    Registered User
    Join Date
    09-24-2008
    Location
    London UK
    Posts
    15

    Re: Finding unique values in a column

    Thank you both so much! I've tried both those solutions and they work brilliantly! NBVC's formula solves my immediate problem, and darkyam's enables me to add extra value to the document I'm producing. I'm very grateful to you both.

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