Excel Column Sort
Solved/Closed
Related:
- Excel Column Sort
- Chrome sort bookmarks - Guide
- Excel mod apk for pc - Download - Spreadsheets
- Kernel for excel repair - Download - Backup and recovery
- Excel count occurrences of string in column - Guide
- Vat calculation excel - Guide
2 responses
Hi,
Try with this macro, I hope it will work as you want :
Best regards
Try with this macro, I hope it will work as you want :
Sub CompareColumnsAB()
Set cl2 = Range("A:A")
Set cl1 = Range("B:B")
For Each c In cl2
MyValue = c.Value
If MyValue <> "" Then
Set Plage = cl1.Cells.Find(MyValue, lookat:=xlWhole)
If Not Plage Is Nothing Then
c.Range("A1").Interior.ColorIndex = xlNone
Else: c.Range("A1").Interior.ColorIndex = 4
End If
End If
Next
End Sub
Best regards