Highlight duplicate values

ghrek

Board Regular
Joined
Jul 29, 2005
Messages
178
Hi

I have a worksheet that I have numerous data in and sometimes they get duplicated.

Is there anyway that I can highlight the duplicate values that are exactly the same in columns A-D. Ive tried conditional formatting on excel and that highlights all duplicate values in each individual column but I need it to highlight if a duplicate is all the way across all 4 columns.

It will also need to look all the way down the workbook for the duplicate entries.

Any ideas?

Thanks
 

Some videos you may like

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

SpillerBD

Well-known Member
Joined
Jul 2, 2014
Messages
2,707
Re: How can I highlight duplicate values

Duplicate values or duplicate sets/rows of data?
 

ghrek

Board Regular
Joined
Jul 29, 2005
Messages
178
Re: How can I highlight duplicate values

Sorry I meant duplicate rows of data.

Lets say row 1 and row 99 have exactly the same data in columns A-D I need them highlighted or better still if it can be done in column E put the word DUPLICATE beside all the ones that are duplicated.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
42,835
Office Version
365
Platform
Windows
Re: How can I highlight duplicate values

How about something like
=COUNTIFS($A:$A,$A1,$B:$B,$B1,$C:$C,$C1,$D:$D,$D1)>1
 

kweaver

Well-known Member
Joined
May 8, 2018
Messages
1,074
Office Version
365, 2010
Re: How can I highlight duplicate values

Of, adding to Fluff, if you want the word in E:

Code:
=IF(COUNTIFS($A:$A,$A1,$B:$B,$B1,$C:$C,$C1,$D:$D,$D1)>1,"DUPLICATE","")
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,102,674
Messages
5,488,210
Members
407,633
Latest member
varunwalla

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top