+ Reply to Thread
Results 1 to 7 of 7

Using Conditional Formating to Highlight Similar Names in 2 Different Columns

  1. #1
    Registered User
    Join Date
    02-05-2019
    Location
    No, Thanks
    MS-Off Ver
    Excel 2016
    Posts
    4

    Using Conditional Formating to Highlight Similar Names in 2 Different Columns

    I'm trying to Highlight name in, say, column B of Sheet1 that are in the format 'Last, First Middle' that are also on a list of names in column C of Sheet 2 that are in the format 'Last, First'. I've tried using Wild Cards with the Match function in conditional formatting, but that only highlights names in the first column that don't have a middle name. Any help would be appreciated, thanks!
    Last edited by Steckles; 02-05-2019 at 11:34 AM.

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Using Conditional Formating to Highlight Similar Names in 2 Different Columns

    Welcome to the forum.

    Please attach a sample workbook (not a picture).
    Make sure there is enough data to demonstrate your need but not so much that the file is too big (if you have 10,000 rows of data, you don't need to leave them all in, for example). Include before and after sheets in the workbook if needed to show the process you're trying to complete or automate. Make sure you include the answers you want to get - put examples in, with notes if necessary to explain details.
    Remember to remove any confidential information or, if a cell needs data in it to work, overwrite it with made-up data.
    The paperclip icon doesn't work at the moment, so click on Go Advanced under the reply box and then scroll down to Manage Attachments to attach a file.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    02-05-2019
    Location
    No, Thanks
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Using Conditional Formating to Highlight Similar Names in 2 Different Columns

    I've attached a lil sample here
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-05-2019
    Location
    No, Thanks
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Using Conditional Formating to Highlight Similar Names in 2 Different Columns

    I've tried setting the Conditional Formatting formula to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    but that just highlights every cell in the B column, and
    I've tried
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    but that only highlights individuals without middle names.

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Using Conditional Formating to Highlight Similar Names in 2 Different Columns

    There's something in your file which keeps making Excel crash on me, but I managed to have it open long enough to see what you want.

    1. Select your range that you want to format (in your file, B1:B7).
    2. On the Home tab of the ribbon, click 'Conditional Formatting', then 'New Rule', then 'Use a formula to determine which cells to format'.
    3. In the formula box, enter this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Amend the Sheet2!$C$2:$C$6 references to match your actual range of Last, First names.
    4. Click 'Format' then choose the highlight you want.

    It works like this:
    The Search function looks for each item in the search list (the Last, First list on Sheet2) within the cell (B1 initially, then B2 going down, etc).
    For example: SEARCH({Bush, George";"Esparza,Plilipe";"Adams, John";"Rex, Timothy";"Smith, John"},"Adams, John Quincy")
    That then becomes an array result containing the number at which the search term is found, like this (for these, the number will always be 1 since it's always at the start of the string/name):
    {#VALUE!;#VALUE!;1;#VALUE!;#VALUE!}
    The Lookup function then looks for its lookup-value (1E+100 which here just represents 'a very large number') in that array. It doesn't find it, so returns the last number found. In this case that's '1' but if there is no result, then the array contains only errors ({#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!}), so the lookup itself returns an error (#N/A).
    The Iserror function does what it says - if there is an error, it returns 'True' if not it returns 'False'. So you get 'True' if there is not a match and 'False' if there is.
    The Not function reverses this, to give you 'True' when there is a match.
    ...and that's what the Conditional Formatting needs - a 'True' to format the cell.

    Hope that helps.

  6. #6
    Registered User
    Join Date
    02-05-2019
    Location
    No, Thanks
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Using Conditional Formating to Highlight Similar Names in 2 Different Columns

    Helped a bunch, Thanks!

  7. #7
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Using Conditional Formating to Highlight Similar Names in 2 Different Columns

    You're welcome, glad I could help. Thanks for the rep and for marking the thread as Solved.

+ 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. Replies: 1
    Last Post: 07-18-2016, 02:34 PM
  2. Need to use conditional formating to highlight a cell
    By Paul Ak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2014, 01:06 PM
  3. [SOLVED] Highlight Conditional Formating
    By VTJeep in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-28-2014, 12:56 PM
  4. Replies: 5
    Last Post: 01-30-2014, 09:40 AM
  5. Find similar names and highlight
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-07-2013, 10:56 AM
  6. [SOLVED] Conditional formating on column and highlight row
    By sennahayo in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-10-2013, 05:34 AM
  7. Replies: 6
    Last Post: 08-17-2012, 04:56 AM

Tags for this Thread

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