+ Reply to Thread
Results 1 to 3 of 3

Distinct count of same type of values in non-contiguous ranges

  1. #1
    Registered User
    Join Date
    06-09-2005
    MS-Off Ver
    Microsoft Office 365 (Windows); also Microsoft 365 (Mac) for light work
    Posts
    10

    Distinct count of same type of values in non-contiguous ranges

    I'd like to count the distinct number of colors given in two non-adjacent columns. In the attached example, the answer should be 7. It would need to skip blanks, and not be based on the unique function (in case a colleague using Excel 2016 has to use the workbook). I've been grappling with this since 11 am today and am out of ideas/have tried everything I could find. Anyone have a solid lead?

    Thanks in advance.
    J.
    Attached Files Attached Files
    Last edited by glitzernes; 08-30-2022 at 11:12 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Distinct count of same type of values in non-contiguous ranges

    How about:

    =SUM(IF(Table1[Tom''s fav colors]="",0,1/COUNTIF(Table1[Tom''s fav colors],Table1[Tom''s fav colors])))+SUM(IF(Table1[Sal''s fav colors]="",0,IF(ISNUMBER(MATCH(Table1[Sal''s fav colors],Table1[Tom''s fav colors],0)),0,1)))

  3. #3
    Registered User
    Join Date
    06-09-2005
    MS-Off Ver
    Microsoft Office 365 (Windows); also Microsoft 365 (Mac) for light work
    Posts
    10

    Distinct count of same type of values in non-contiguous ranges

    That did it - and I could follow the solution. Thanks Nick.

    James
    Last edited by AliGW; 08-31-2022 at 05:16 AM. Reason: SOLVED tag applied - no need to edit the thread title for this.

+ 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] How to count distinct values?
    By kobyz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-15-2020, 06:03 AM
  2. [SOLVED] How to get count of distinct values? (under ver. 2013)
    By JumboCactuar in forum Excel General
    Replies: 2
    Last Post: 02-27-2018, 03:13 AM
  3. How can I count the distinct values
    By rizz0 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-13-2017, 09:33 AM
  4. Count of Values (Rows) of Most Recent Consecutive Streak (2+ Distinct Values)
    By ExcelForum88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2016, 12:26 PM
  5. Count Distinct Values
    By trevordsmith in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-02-2014, 09:21 PM
  6. [SOLVED] Count Distinct Values
    By djfatboyfats in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-20-2012, 07:39 AM
  7. Count Distinct Values?
    By bill_morgan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-26-2005, 10:06 PM

Tags for this Thread

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