Comparing Data in Excel
Solved/Closed
sointly
Posts
1
Registration date
Sunday May 26, 2013
Status
Member
Last seen
May 27, 2013
-
May 27, 2013 at 08:55 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - May 27, 2013 at 11:40 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - May 27, 2013 at 11:40 AM
Related:
- Comparing Data in Excel
- Transfer data from one excel worksheet to another automatically - Guide
- Number to words in excel - Guide
- Tmobile data check - Guide
- Gif in excel - Guide
- Marksheet in excel - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
May 27, 2013 at 11:40 AM
May 27, 2013 at 11:40 AM
Hi Sointly,
Here is your requested code:
In case you don't know here is how to implement the code:
ALT+F11 > top menu new window > Insert > Module > Paste code in big white field.
To run code:
Select correct sheet > ALT+F8 > double-click ColorUniqueRed
Best regards,
Trowa
Here is your requested code:
Sub ColorUniqueRed() Dim lRow, x As Integer lRow = Range("A" & Rows.Count).End(xlUp).Row For Each cell In Range("A1:A" & lRow) x = 0 With Range("N1:X65536") Set c = .Find(cell.Value, LookIn:=xlValues) If Not c Is Nothing Then firstAddress = c.Address Do x = x + 1 Set c = .FindNext(c) Loop While Not c Is Nothing And c.Address <> firstAddress End If End With If x = 0 Then cell.Interior.ColorIndex = 3 Next cell End Sub
In case you don't know here is how to implement the code:
ALT+F11 > top menu new window > Insert > Module > Paste code in big white field.
To run code:
Select correct sheet > ALT+F8 > double-click ColorUniqueRed
Best regards,
Trowa