+ Reply to Thread
Results 1 to 4 of 4

Count specific text in a colum but i want it to count duplicates only Once

  1. #1
    Registered User
    Join Date
    10-23-2014
    Location
    montreal
    MS-Off Ver
    2010
    Posts
    4

    Count specific text in a colum but i want it to count duplicates only Once

    "Hey Guys im new here, I have a formula that i want to do and for some reason i wasnt able to get a clear answer anywhere. My goal is to be able to count the number of specific text in a colum but i want the duplicates to be only counted once. I hope someone can help me

    Attached is my example:

    Basically i wan to count the number of challenger products that are in the colum but i only want to count the duplicates as one count. Aslo : I want it to be specific text aka 'Challenger 350"" since there are other types of challengers. (Please note that the duplication is due to the last 5 digits (sERIAL NUMBERs) "
    Book1.xlsx

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Count specific text in a colum but i want it to count duplicates only Once

    I would add a couple of helper columns :

    - one to separate out the model (e.g. CHALLENGER 350) from the serial number (in Column D):
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    - one as the reciprocal of the count of matching values, to allow a distinct count (in Column E):
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Then use a SUMIF, to count the distinct values for each model.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    See Sheet2 in my attachment for details.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Count specific text in a colum but i want it to count duplicates only Once

    Using your posted workbook
    and
    I2: CHALLENGER 350
    I3: CHALLENGER 360
    This regular formula returns the count of unique values prefixed by the referenced cell:
    Please Login or Register  to view this content.
    Copy that formula into H3

    For your data, those formulas return:
    16 <-I think your count was off by one
    6

    Note: that formula works as long as the last characters are numeric.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Count specific text in a colum but i want it to count duplicates only Once

    Or try this one:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

+ 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. Don't count duplicates with specific parameters.
    By JoshuaJones in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2014, 01:44 PM
  2. [SOLVED] Array Formula to count specific text ignoring duplicates.
    By JRidge in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 10-07-2013, 05:31 AM
  3. [SOLVED] indentify status text in ne colum and count in another if
    By Slowfish in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-23-2012, 11:44 AM
  4. Count values in a colum if cell in same row has specific value.
    By kadler in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-03-2011, 12:38 PM
  5. Replies: 1
    Last Post: 02-02-2006, 09:20 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