+ Reply to Thread
Results 1 to 3 of 3

Count formula which counts UNIQUE TEXT VALUES which start with a specific text string

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    Tetbury, England
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    73

    Exclamation Count formula which counts UNIQUE TEXT VALUES which start with a specific text string

    Hi All,

    I have a spreadsheet, with text entries in the columns. I want to have a formula which will count the UNIQUE text entries within those columns. The next bit is, that each of the text strings in the different cells, will start with certain things, depending on what client they are for, so I want to be able to ask the formula to count the number of UNIQUE text strings which start with LFB, or JLR, or LMS etc.

    For Example, if I had 3 cells, with the following strings within them:

    LFB - TEST 1
    LFB - TEST 2
    JLR - TEST 1
    JLR - TEST 2
    LMS - TEST 1
    LMS - TEST 2

    A formula to count the unique text strings would return an answer of 6, however, I would like a formula, which I can specify what the string must start with. So in the case of LFB, the formula I desire would return a value of 2.

    If you need any further explanation, please let me know, but for now with the limited access I have to the website from my phone, this was the best way I could demonstrate what I meant.

    Thanks in advance for your help gurus!




    Chris

  2. #2
    Registered User
    Join Date
    01-08-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    71

    Re: Count formula which counts UNIQUE TEXT VALUES which start with a specific text string

    Hi
    confirm LFB in one cell, TEST in another cell and the values in third cell?
    If they are together then you can try entering the formula in any other cell like =COUNTIF(cellref,"*LFB*") which will give you the answer 2. Change the LFB to any text string will return the count of given text
    Hope this will help

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Count formula which counts UNIQUE TEXT VALUES which start with a specific text string

    Try this. It assumes that your data are in A1 to A3. Put the string (LFB) in B1. It will find lfb and LFB and count them both...

    =SUMPRODUCT((LEN(A1:A3)-LEN(SUBSTITUTE(UPPER(A1:A3),B1,"")))/LEN(B1))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. Formula that counts number of unique text values if it meets criteria
    By ruledwritingpaper in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-15-2014, 02:57 PM
  2. Count Unique Text String
    By hecgroups in forum Excel General
    Replies: 11
    Last Post: 11-17-2012, 12:50 PM
  3. Count Specific Text Values in a Word Table Formula
    By cpg3 in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 09:37 PM
  4. Replies: 4
    Last Post: 11-30-2010, 05:14 PM
  5. [SOLVED] [SOLVED] check if the text string start with a specific character
    By September21 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-22-2005, 11:05 AM

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