Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Find duplicate values in column K then compare cells range of dups

I have this code to identify differences of cells within specified rows:

Sub Macro2()
Dim rng As Range, cell As Range
Range("9:9,12:12").Interior.ColorIndex = xlNone
Set rng = Range(Cells(9, 1), Cells(9, Columns.Count).End(xlToLeft))
For Each cell In rng
If cell < cell.Offset(3, 0) Then
cell.Interior.ColorIndex = 3
cell.Offset(3, 0).Interior.ColorIndex = 3
End If
Next

End Sub

However I would like to add to this a routine to find duplicate values in
column K and then run the above code to highlight the differences between the
cells in each duplicate row.

Can this be done?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find duplicate cells in Column a & retrieve column B ghost Excel Discussion (Misc queries) 2 February 22nd 09 05:39 PM
how to find duplicate values in a column during enter the value? kesav Excel Discussion (Misc queries) 0 July 18th 08 06:37 AM
Find Dups in a column, validate all dup rows are identical. jonnybrovo815 Excel Programming 0 June 5th 07 10:43 PM
how do i prevent duplicate values in a range of validated cells? scw Excel Discussion (Misc queries) 1 December 20th 06 09:43 AM
Compare List - Get Duplicate Values John Mansfield[_2_] Excel Programming 2 September 4th 04 05:34 PM


All times are GMT +1. The time now is 12:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"