+ Reply to Thread
Results 1 to 4 of 4

find duplicate cells in rows across multiple column

  1. #1
    Registered User
    Join Date
    01-27-2014
    Location
    kathmandu
    MS-Off Ver
    Microsoft Excel for Mac version 16.68, Office LTSC
    Posts
    33

    find duplicate cells in rows across multiple column

    I have a lot data with duplicate values in a row, I want to check the duplicates and highlight them with different colors. I can do that easily for one row. choose conditional formatting ->Highlight cell rules -> duplicate values ...
    But then i have apply this formatting across multiple columns, i have to do it one by one. Any shortcuts or formula ?
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: find duplicate cells in rows across multiple column

    First, remove the conditional formatting that you have placed in rows 2 and 3. Then Select all the cells that you want this to apply to (i.e. A2:M32 in your sample file), so that you only need to do it once.

    Click on Conditional Formatting | New Rule | Use a formula... , then put this formula in the dialogue box which pops up:

    =COUNTIF($A2:$M2,A2)>1

    Click on the Format button | Fill tab and choose your background colour. You might also want to click on the Font tab and the Color drop-down to select the foreground colour. Then click OK twice to exit the dialogue box, and then your duplicates should be highlighted.

    Note that you might need to use semicolons ( ; ) instead of commas ( , ) in the formula, depending on your regional settings.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-27-2014
    Location
    kathmandu
    MS-Off Ver
    Microsoft Excel for Mac version 16.68, Office LTSC
    Posts
    33

    Re: find duplicate cells in rows across multiple column

    Great, However for excel for Mac, it was Highlight cell rules, more rules.. use a formula.. If i were to do the same for column then ? I tried =COUNTIF($A2:$A32,A2)>1 , It still sorts out duplicates in a row. just wondering how would you do it for column ?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: find duplicate cells in rows across multiple column

    For columns, you would need to change over the $ signs, i.e.:

    =COUNTIF(A$2:A$32,A2)>1

    which is applied to the same range ($A$2:$M$32) with A2 as the active cell, as Excel automatically adjusts the cell references relative to that cell when you exit the CF dialogue box.

    Hope this helps, and thanks for the rep.

    Pete

+ 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. vba code to find the last duplicate entry in a column and delete other rows
    By stefanp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-18-2019, 06:37 PM
  2. Dictionary or other object to find out duplicate rows across column values
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-27-2019, 01:07 PM
  3. [SOLVED] Excel VBA to find Duplicate Entries with multiple column combination and Display Rows Numb
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2018, 05:36 AM
  4. Replies: 5
    Last Post: 12-18-2015, 10:21 AM
  5. [SOLVED] Find duplicate rows based on two column values and group
    By kevivu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2015, 12:10 AM
  6. [SOLVED] Macro to find duplicate values in a column and add the corresponding rows
    By hoss88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2013, 05:40 AM
  7. Find duplicate text in cells in column, then give names of cells containing duplicate text
    By spelunkerforlife in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 10:13 AM

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