+ Reply to Thread
Results 1 to 5 of 5

highlighting duplicates if the cells match between multiple columns

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    53

    highlighting duplicates if the cells match between multiple columns

    I have two columns in a table and want to highlight if there are any duplicates between both...
    Column A is 'locations' and Column B is 'dates' i want to make sure there are not two people in the same location, on the same date..

    For example, in the two columns (letters for locations, numbers for dates) below i would want to highlight Z 1
    Z 1
    D 1
    H 3
    W 6
    B 3
    Z 1
    J 1
    L 4
    Z 2

    any help is much appreciated!!!! conditional formatting would be preferable!!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: highlighting duplicates if the cells match between multiple columns

    Hi,

    Would you allow a Helper Column that was the two columns appended? Then you could do a CF of Duplicate on the helper column.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    04-02-2013
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    53

    Re: highlighting duplicates if the cells match between multiple columns

    i was thinking of doing a concatenation column of the two but trying to avoid if i could... people play about with the spreadsheets and will probably end up un-hiding the column and 'tinkering'

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: highlighting duplicates if the cells match between multiple columns

    That is the purpose of sheet protection function - it prevents unauthorised meddling...
    Or workbook could open with a friendly warning - "Mess with my columns and you are toast!"
    Last edited by kev_; 07-24-2017 at 12:43 PM.

  5. #5
    Registered User
    Join Date
    04-02-2013
    Location
    england
    MS-Off Ver
    Excel 2016
    Posts
    53

    Re: highlighting duplicates if the cells match between multiple columns

    this worked.

    i also found a method where you can enter the formula straight into the CF...

    '=COUNTIFS($D:$D,$D1,$E:$E,$E1)>1

+ 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] Delete Duplicates in Multiple Cells & Multiple Columns
    By jennysoderquist in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-08-2017, 05:37 PM
  2. Remove Duplicates in Multiple Columns and Multiple Cells
    By mlopez60120 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2017, 09:32 PM
  3. Finding and highlighting duplicates accross columns
    By Aries86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-21-2016, 07:26 PM
  4. Highlighting duplicates, using 2 columns as the key
    By Santoryuu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2015, 11:09 AM
  5. Highlighting cells with 4 or fewer duplicates
    By ItsJustMe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-05-2015, 02:48 PM
  6. [SOLVED] Comparing values in two columns and highlighting cells that don't match
    By moosetales in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-10-2014, 07:51 AM
  7. Highlighting Duplicates across multiple worksheets
    By washua in forum Excel General
    Replies: 4
    Last Post: 01-18-2012, 07:05 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