+ Reply to Thread
Results 1 to 3 of 3

Using Frequency() to grab unique values

  1. #1
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2013
    Posts
    118

    Using Frequency() to grab unique values

    Hello,

    I'm trying to count only unique values/text in a column. I came across the formula:

    Please Login or Register  to view this content.
    Now this works fine, but I don't understand why I can't turn it into a sumif(s) or countif(s):

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Array entered or not, I keep getting: "The formula you typed contains an error". As far as I've learned, Frequency() returns an array and if the bin is the same range as the data array, 0 will be returned for each duplicated value. I'd like as small (and preferrably non-array) a formula as I can get because this will be entered into other sum/count-ifs.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Using Frequency() to grab unique values

    Hi,

    The first of your formulas does not require array-entry.

    Unfortunately, the SUMIF(S)/COUNTIF(S) family does not accept anything other than actual range references for the range criteria.

    Another (non-array) alternative is:

    =SUMPRODUCT((B2:B10<>"")*(1/COUNTIF(B2:B10,B2:B10)))

    Regards
    Click * below if this answer helped

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

  3. #3
    Forum Contributor
    Join Date
    06-18-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2013
    Posts
    118

    Re: Using Frequency() to grab unique values

    Hmmm, nothing other than actual ranges or named ranges. First thing I thought of was to try using the INDIRECT() function...I feel like it's helped me out in the past with similar issues but didn't quite do it here. That sumproduct may be the best bet. I just need to watch my already high calculation time (hence the desire for a non-array formula).

+ 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. VBA to grab all data in certain rows that contain a unique value
    By jcomfort in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2013, 04:46 PM
  2. XLS Array - Unique Value and Frequency?
    By markp99 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-11-2012, 05:48 PM
  3. Grab unique values affiliated with a unique employee
    By texaschili in forum Excel General
    Replies: 2
    Last Post: 07-13-2010, 10:52 AM
  4. Frequency of unique values meeting multiple criteria
    By systemsteve in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2008, 09:50 AM
  5. Frequency of Unique Values
    By systemsteve in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2008, 08:46 AM

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