+ Reply to Thread
Results 1 to 2 of 2

formula for counting unique values

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    formula for counting unique values

    Hello. How does this formula work for counting unique values? Thanks. =SUM(IF(FREQUENCY(B5:B54848, B5:B54848)>0,1))

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: formula for counting unique values

    - Count the number of unique values by using the FREQUENCY function. The FREQUENCY function ignores text and zero values. For the first occurrence of a specific value, this function returns a number equal to the number of occurrences of that value. For each occurrence of that same value after the first, this function returns a zero.

    - Assign a value of 1 to each true condition by using the IF function.

    - Add the total by using the SUM function.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] counting unique values in col A against unique value in column B
    By greyscale in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2013, 08:43 AM
  2. Replies: 1
    Last Post: 02-18-2013, 01:46 AM
  3. Formula For Counting conditional on Unique Values
    By KellyMac6 in forum Excel General
    Replies: 3
    Last Post: 07-23-2012, 01:49 PM
  4. Replies: 2
    Last Post: 06-06-2012, 01:44 PM
  5. Replies: 0
    Last Post: 03-08-2012, 12:18 PM

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