+ Reply to Thread
Results 1 to 5 of 5

Count distinct?

  1. #1
    Registered User
    Join Date
    12-09-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    18

    Count distinct?

    I would like excel to count a range of cells and return the number of different values.
    For example, if the below values were in ceels which made up the range, then the number of different values would be 3. FSG00326 appears in 2 cells but is only counted once as it only constitutes one value.

    FSG00326
    FSG00326
    FSG00295
    FSG00842

    Does anyone know how to do this in 2003?

    Thanks

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676

    Re: Count distinct?

    With data in A2:A100 try this formula

    =SUMPRODUCT((A2:A100<>"")/COUNTIF(A2:A100,A2:A100&""))
    Audere est facere

  3. #3
    Registered User
    Join Date
    12-09-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Count distinct?

    Just tried that but it's not working. Just get the error #N/A.

    Thanks for the suggestion though.

    Any more offers?

  4. #4
    Forum Moderator Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Count distinct?

    Hi Africa

    I had a suggestion for you but [B]daddylonglegs[/B] suggestion, is better and work great..

    Where is the problem??

    Take a look to the attachement

    Hope to helps you.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    12-09-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Count distinct?

    It's working now - thanks. I think it's because I had some filters covering the table area which was stopping it from working.

    Thanks for the help.

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