+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting using Match

  1. #1
    Registered User
    Join Date
    12-20-2018
    Location
    Jacksonville, Florida
    MS-Off Ver
    Microsoft Ofice 365
    Posts
    2

    Conditional Formatting using Match

    So here is what I want to do. Column B is a list of names. Columns C and D are descriptive columns that are not important. Columns E-O are up to 10 more names that are linked to column B. Column B are all unique names, but E-O can have duplicates by different column Bs. I hope that is clear.

    Anyway, what I want to do is conditionally format columns E-O so that if the name in the cell matches any in column B, it will highlight a different color. This way I can later go through and add the unhighlighted names to column B, giving them their own row. I assume this will be using the match command, but I can't figure out the formatting, nor how to apply the format to all the columns I wish. I'd also like to make it so if I enter a name into column B that is already there, it will turn red. I'd appreciate any advice.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Conditional Formatting using Match

    welcome to the forum. this is for column E:O. select the range you want to apply to (say from E2:O10)
    go to Home tab -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =COUNTIF($B:$B,E2)
    format desired color

    for column B, do the same steps but for B2:B10 for eg:
    =COUNTIF($B:$B,B2)>1

    if i guessed it wrongly, do upload an excel sample so that we do not have to manually key in your data to do a testing.

    input the desired results so that we don't have to second-guess if what we are doing is correct or not. you may look at my signature to upload an eg that is easier to understand.

    the upload attachment must be done by going to Go Advanced. click on Manage Attachments. Choose file, upload and close the window.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    12-20-2018
    Location
    Jacksonville, Florida
    MS-Off Ver
    Microsoft Ofice 365
    Posts
    2

    Re: Conditional Formatting using Match

    Oh, that is perfect, thank you. Wish I understood why that worked, but it's enough that it worked.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Conditional Formatting using Match

    Conditional formatting formulas must result in True (greater than zero) or False (zero)
    =COUNTIF($B:$B,E2)
    counts the occurances of the value in E2 found in column B. If it's 1 or more True is returned and the CF is applied.
    Ben Van Johnson

+ 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] No match conditional formatting
    By gz3s36 in forum Excel General
    Replies: 4
    Last Post: 08-30-2017, 10:10 AM
  2. Conditional formatting with INDEX MATCH MATCH
    By jawebb in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-28-2016, 05:01 AM
  3. 3 way match with conditional formatting
    By JBur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-26-2015, 09:28 AM
  4. Conditional formatting to match row numbers
    By mtouhig in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-03-2012, 05:58 PM
  5. using conditional formatting to match MONTH
    By greyscale in forum Excel General
    Replies: 5
    Last Post: 05-23-2011, 08:14 AM
  6. Match and conditional formatting
    By murray_g in forum Excel General
    Replies: 3
    Last Post: 05-10-2007, 07:12 PM
  7. MATCH, FIND & Conditional Formatting
    By ExcelJunkie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-01-2006, 09:01 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