mcintoshmc
Active Member
- Joined
- Aug 10, 2007
- Messages
- 277
Currently I'm using this formula as a conditional format that highlights the entire row if the cell in column A is a duplicate.
I already have a macro that will delete the duplicates automatically, and have it as a button on my quick access toolbar.
I've created another forumula
This will place a X in column P if a certain name is not located in column H.
Ideally, I would like a Macro that would delete the duplicate from column A that also has an X in column P.
This is the current macro I'm using to delete the duplicates
Excel Formula:
=COUNTIF($A:$A,$A2)>1
I already have a macro that will delete the duplicates automatically, and have it as a button on my quick access toolbar.
I've created another forumula
Excel Formula:
=IF(NOT(OR($H2=List!$A$2,$H2=List!$A$3,$H2=List!$A$4)),"X","")
Ideally, I would like a Macro that would delete the duplicate from column A that also has an X in column P.
This is the current macro I'm using to delete the duplicates
VBA Code:
Sub Delete_duplicate_rows()
Dim Rng As Range
Set Rng = Selection
Rng.RemoveDuplicates Columns:=Array(1), Header:=xlYes
End Sub