+ Reply to Thread
Results 1 to 5 of 5

Conditional Format Based on Matching or Not of First 3 Letters of another Column

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Conditional Format Based on Matching or Not of First 3 Letters of another Column

    Hey guys,

    I'm looking to do conditional formatting that highlights a certain section just as seen in the example when the first few characters match the first few of another column. If they match I'd like to highlight RED if they do NOT match then GREEN. Its a little backwards but what I'm eager to sort out. Any help is appreciated!


    Thanks,

    Excel2425
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,210

    Re: Conditional Format Based on Matching or Not of First 3 Letters of another Column

    Green

    =upper(left($b7,3))=upper(left($c7,3))

    red

    =upper(left($b7,3))<>upper(left($c7,3))

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional Format Based on Matching or Not of First 3 Letters of another Column

    Select A7: N??? however many rows you want to go down
    Then use conditional formatting rules
    add a new rule, with formula
    =LEFT($B7,3) = LEFT($C7,3) for Green
    and a new rule with formula
    =LEFT($B7,3) <> LEFT($C7,3) for red

    to stop blank cells colouring - you can use and AND()

    as below
    =AND(LEFT($B7,3) = LEFT($C7,3) , $B7 <> "" ) for Green

    =AND(LEFT($B7,3) <> LEFT($C7,3) , $B7 <> "" ) for red

    see attached range from A7 to N100
    Attached Files Attached Files
    Last edited by etaf; 01-19-2017 at 12:04 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Re: Conditional Format Based on Matching or Not of First 3 Letters of another Column

    Looks to have done just the trick! Thanks.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional Format Based on Matching or Not of First 3 Letters of another Column

    you are welcome , thanks for the rep

+ 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] Conditional format help needed to highlight cells based on partially matching numbers.
    By krjoshi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-01-2016, 12:15 PM
  2. [SOLVED] Conditional format part of a column based on a value
    By rickycr in forum Excel General
    Replies: 5
    Last Post: 10-16-2015, 10:54 AM
  3. vba code to autofilter column based on conditional format
    By krazyhype19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-28-2014, 03:05 AM
  4. Conditional Format an Entire Column based on percentage of another Column
    By Nolson24 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-29-2013, 09:23 AM
  5. [SOLVED] conditional format row based on cell in column A
    By ea223 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2013, 11:36 AM
  6. Excel 2007 : Conditional Format based on value in a column
    By kearniesue in forum Excel General
    Replies: 3
    Last Post: 08-03-2011, 12:52 PM
  7. [SOLVED] Conditional format based on data from another column
    By Ellie in forum Excel General
    Replies: 2
    Last Post: 08-12-2005, 12:05 PM

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