+ Reply to Thread
Results 1 to 3 of 3

Thread: Simple count of number of different values

  1. #1
    Registered User
    Join Date
    01-24-2011
    Location
    South Carolina
    MS-Off Ver
    Excel 2003
    Posts
    20

    Simple count of number of different values

    I've searched, and so many counts are conditional, requiring other columns for look-ups, or "hard-coded" criteria ("w") embedded in the formula.

    I want a simple count of a single column. But I want to know how many different things are in that column - not a list. So if I had
    A
    A
    B
    A
    D
    C
    A
    I would get "4" -
    Nothing I've tried has worked - formula-wise. I can do this with sub-totals, collapse [2], "visible cells only" copy/paste to another sheet to see how many rows are consumed...but that's much to cumbersome to perform regularly.
    sample file attached.
    thanks for any assistance!
    Attached Files Attached Files
    Last edited by Hang Glider; 02-13-2012 at 02:28 PM.

  2. #2
    Forum Guru Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    MS Excel 2010
    Posts
    2,247

    Re: Simple count of number of different values

    Try

    =SUMPRODUCT((B1:B5000<>"")/COUNTIF(B1:B5000,B1:B5000&""))

  3. #3
    Registered User
    Join Date
    01-24-2011
    Location
    South Carolina
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Simple count of number of different values

    Perfect!

    thank you!

+ 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