+ Reply to Thread
Results 1 to 6 of 6

Find exact match in cell with multiple strings

  1. #1
    Registered User
    Join Date
    05-13-2010
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    6

    Find exact match in cell with multiple strings

    Hey all,

    I tried a search with no luck. I have a list of data that looks something like this:

    A1=ABC_DEF_1
    A2=ABC_DEF_2
    A3=ABC_DEF_12
    A4=ABC_DEF_1
    ABC_DEF_2
    ABC_DEF_12
    .......

    I need to find a formula that will count how many times in this colum ABC_DEF_1 occurs then how many times ABC_DEF_2 occurs.....etc

    None of the formulas I have attempted seem to work completely. The formulas seem to pick up only some of the cells, but not all.

    Thanks

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Find exact match in cell with multiple strings

    Try

    =COUNTIF(A:A,"ABC_DEF_1")

    etc.

  3. #3
    Registered User
    Join Date
    05-13-2010
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Find exact match in cell with multiple strings

    that will not return the cell with multiple entries (A4)

  4. #4
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Find exact match in cell with multiple strings

    Hi

    If there are no duplicates in the cell and the values are delimited by a newline, like in the example, try:

    =SUMPRODUCT(--ISNUMBER(FIND(CHAR(10)&B1&CHAR(10),CHAR(10)&A1:A4&CHAR(10))))

    Where the value you search is in B1. The search is case sensitive. If you want case insensitive, replace Find() with Search().

    If there can be duplicates in a cell post back.

    HTH

  5. #5
    Registered User
    Join Date
    05-13-2010
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Find exact match in cell with multiple strings

    Quote Originally Posted by lecxe View Post
    Hi

    If there are no duplicates in the cell and the values are delimited by a newline, like in the example, try:

    =SUMPRODUCT(--ISNUMBER(FIND(CHAR(10)&B1&CHAR(10),CHAR(10)&A1:A4&CHAR(10))))

    Where the value you search is in B1. The search is case sensitive. If you want case insensitive, replace Find() with Search().

    If there can be duplicates in a cell post back.

    HTH
    This looks like money!! Thanks and there are no duplicates within a single cell so this worked perfectly

  6. #6
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Find exact match in cell with multiple strings

    What results do you expect in the data you show?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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