+ Reply to Thread
Results 1 to 5 of 5

Count duplicate text values in columns whilst ignoring/excluding certain values

  1. #1
    Registered User
    Join Date
    11-29-2016
    Location
    Kintore, Scotland
    MS-Off Ver
    Office 2016
    Posts
    9

    Post Count duplicate text values in columns whilst ignoring/excluding certain values

    Hi all,

    I'm struggling with an array formula at the moment and was hoping someone here would be able to help out. The formula I've currently got (see below) is working well at counting the duplicate text values in columns, however, I now need to exclude certain specified text values from the formula. The formula I'm currently using is:

    Please Login or Register  to view this content.
    I have attached a simplified excel file in relation to the above formula. What I am trying to achieve is for the array formula to count all duplicate values, expect for any text values which equal both "e" and "f".

    Hopefully I've provided enough information for someone to help out, and looking forward to hearing from some formula wizards who can work their magic on my problem.

    Many thanks,

    Adam
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Count duplicate text values in columns whilst ignoring/excluding certain values

    Could you please clarify what you mean by this:

    I have attached a simplified excel file in relation to the above formula. What I am trying to achieve is for the array formula to count all duplicate values, expect for any text values which equal both "e" and "f".
    Would these values be included or excluded?

    e
    f
    ef
    ecf
    cf
    ec

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Count duplicate text values in columns whilst ignoring/excluding certain values

    You could try this as a starting point:

    =SUM(IF(FREQUENCY(IF(A1:A8<>"",IF(A1:A8<>"e",IF(A1:A8<>"f",MATCH(A1:A8,A1:A8,0)))),ROW(A1:A8)-ROW(A1)+1)>1,1))

    confirmed with C+S+E.

  4. #4
    Registered User
    Join Date
    11-29-2016
    Location
    Kintore, Scotland
    MS-Off Ver
    Office 2016
    Posts
    9

    Re: Count duplicate text values in columns whilst ignoring/excluding certain values

    Hi Ali - thanks for your quick response! The formula tweaks worked perfectly - many thanks for helping out. I'll mark this as closed now.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Count duplicate text values in columns whilst ignoring/excluding certain values

    You're welcome!

+ 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] Ranking with duplicate values while ignoring zeros and negative values
    By mfortier3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-06-2017, 04:43 AM
  2. [SOLVED] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  3. Replies: 1
    Last Post: 03-03-2014, 11:06 AM
  4. Replies: 1
    Last Post: 08-02-2013, 09:58 PM
  5. Count needed - numeric values excluding the text value NA
    By Linda Borza in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2013, 07:17 PM
  6. Excel COUNT function, excluding duplicate values
    By knightcloud in forum Excel General
    Replies: 2
    Last Post: 07-07-2010, 01:58 AM
  7. Replies: 4
    Last Post: 12-24-2008, 02:53 AM
  8. How do I do count calculations ignoring duplicate values
    By Robin Faulkner in forum Excel General
    Replies: 1
    Last Post: 03-31-2005, 12: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