highlight duplicate value comparing previous row only

purelutz

New Member
Joined
May 11, 2014
Messages
16
given data below is it possible to compare and highlight duplicate values from only the row directly below and not any other row. see example below. using the conditional formatting duplicate highlight will highlight any duplicates in given range. thanks.
1580507577905.png
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Like this?

Select the upper left most cell and put the formula and then you can copy paste the format in other cells.

Book1
GHIJKL
1036415012279
1136294823845
121043538436
13451614251025
1419414364227
15485034424242
162133311117
17331633452711
182769311916
1992648314926
201312452139
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G10:L20Expression=G10=G9textNO
 
Upvote 0
that formula only highlights the duplicate if it is directly above. i want to highlight if it's anywhere in the row.
 
Upvote 0
maybe select whole range and from Conditional Formatting choose Highlight Cell Rules - Duplicate Values
duplicates.png

or play with $ sign, eg. G$10=G9
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,795
Messages
6,121,624
Members
449,041
Latest member
Postman24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top