+ Reply to Thread
Results 1 to 4 of 4

conditional match first 2 letters of 3 cells

  1. #1
    Forum Contributor
    Join Date
    06-15-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2019
    Posts
    168

    Question conditional match first 2 letters of 3 cells

    What would be a conditional format formula that would return a result based on 3 cells in a row of 10 cells all having the same first 2 identical letters? Example, if the words in the 3 cells all start with EV, the whole row would stay unaffected, but if one of the 3 cells had a word that began with something different, say EE, then the row would be highlighted in red. I have figured out how to match two, but cannot get three. I appreciate your consideration, Gary
    Last edited by allgeef; 03-22-2011 at 11:27 AM.

  2. #2
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: conditional match first 2 letters of 3 cells

    Wouldn't this work?

    Please Login or Register  to view this content.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: conditional match first 2 letters of 3 cells

    Quote Originally Posted by allgeef
    If the words in the 3 cells all start with EV, the whole row would stay unaffected, but if one of the 3 cells had a word that began with something different, say EE, then the row would be highlighted in red
    Assuming you need to check three specific cells (rather than three from ten) then:

    Please Login or Register  to view this content.
    COUNTIF would not be viable if the three cells in question were non-contiguous. If that's the case you can adapt bentlybob's approach to an OR based inequality test:

    Please Login or Register  to view this content.
    In the above example we change from contiguous range of A1:C1 to non-contiguous range of A1:B1,D1
    Last edited by DonkeyOte; 03-22-2011 at 04:35 AM. Reason: modified 2nd example to non-contiguous

  4. #4
    Forum Contributor
    Join Date
    06-15-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2019
    Posts
    168

    Re: conditional match first 2 letters of 3 cells

    The formula "or <>" seems to do the trick. Thanks much for taking the time and effort to help me with this. Regards, Gary

+ 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