+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting for finding duplicates across multiple columns

  1. #1
    Registered User
    Join Date
    02-06-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    8

    Conditional Formatting for finding duplicates across multiple columns

    Hello,

    I am only familiar with the absolute basics of conditional formatting, but now I'd like to use it to find duplicates of more than one condition.

    For example, say I have a sheet with three columns. Column A has letters A through H, column B has numbers 1-8 and column C has letters I through P.

    What I am trying to accomplish is to have the cell in column A or the entire row highlighted in different colors depending on which columns match.

    There should be four different colors:
    1. Duplicates in A
    2. Duplicates in A and B in the same row
    3. Duplicates in A and C in the same row
    4. Duplicates in A, B and C in the same row

    I have embedded attached a sample document for clarification.

    Thanks in advance for any and all help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Conditional Formatting for finding duplicates across multiple columns

    So if ONLY B and C match (hence A is different to B and C) you don't want any highlighting?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Conditional Formatting for finding duplicates across multiple columns

    In your example NO columns match.
    No columns match since A contains letters and B contains numbers, therefore column A weill NEVER match column B.
    Additionally, although column C contains letters they are not the letters in column A so there are NO matches between columns A and C.
    Nor A and B and C since B contains numbers.

    You need to explain this more clearly and decide whether you are trying to match COLUMNs or ROWs
    Last edited by Special-K; 06-15-2017 at 05:45 AM.

  4. #4
    Registered User
    Join Date
    02-06-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Conditional Formatting for finding duplicates across multiple columns

    Thank you for your time and I'm sorry if I was unclear. I've edited and uploaded another workbook to try to illustrate what I am looking for.

    The main criteria is column A. I know how to use conditional formatting to highlight a duplicate cell in column A, but the rest is where it breaks down for me.

    In the examples, using car models, year and color, I'd like different highlight colors for:

    1. Model only
    2. Model and year only
    3. Model and color only
    4. Model year and color

    I do not care about year and color.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Conditional Formatting for finding duplicates across multiple columns

    It would make things much easier to create helper columns. The first is a concatenation of the model and year, the next is a concatenation of the model and color, and the last is a concatenation of the model, year, and color. You can then use the technique you already know to find duplicates in a column.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  6. #6
    Registered User
    Join Date
    02-06-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Conditional Formatting for finding duplicates across multiple columns

    Quote Originally Posted by Pauleyb View Post
    You can then use the technique you already know to find duplicates in a column.
    Thank you. I was able to create the helper columns with the concatenation criteria you outlined. Assuming that my helper columns are D-F with D being A&B, E being A&C and F being A&B&C, is there a way to hide those columns and have column A be formatted to highlight different colors based on duplicates in columns D-F?

  7. #7
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Conditional Formatting for finding duplicates across multiple columns

    Yes. The conditional formula can reference other cells. So, you can set the range for the condition to be A:A (for all of column A) or A:C (if you want the coloring for columns A, B, C). Then your formula would be the one you have used in the past, but referencing columns D, E, or F, as appropriate.

+ 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. Countif Finding Duplicates in Multiple Columns
    By Jwildcat in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-23-2016, 02:46 PM
  2. Conditional Formatting Duplicates Across Multiple Columns
    By ldewson86 in forum Excel General
    Replies: 1
    Last Post: 06-24-2015, 07:18 AM
  3. Finding Duplicates via Conditional Formatting
    By MacroLearner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2015, 04:23 AM
  4. finding duplicates in multiple columns.
    By caseythomas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2014, 05:24 PM
  5. [SOLVED] Finding duplicates throughout multiple columns
    By goldstar1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2013, 09:37 PM
  6. Finding duplicates in multiple columns
    By khank in forum Excel General
    Replies: 2
    Last Post: 12-30-2010, 06:54 PM
  7. Conditional Formatting & Finding Duplicates
    By mluetkem in forum Excel General
    Replies: 4
    Last Post: 01-17-2010, 10:48 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