I seem to have lost my log in info and the site doesnt recognize my email address so a new account it is. I have a spreadsheet that has 14 columns and 50k+ rows, but I need to search for duplicates in 2 of the columns... but not just duplicates.... here is some sample data. One of the columns has a business name, and another has invoice numbers. I need to pick out the duplicate invoice numbers from the same vendor. I'm not particular if it highlights the duplicates in 1 row, both rows, adds a word in column 15 "Duplicate" or how it notes that its a dup. I already have a some code sorting and deleting rows before this code would come into play, and will most likely add more code to sort bringing the dups to the top.
I thought about maybe a nested if statement in column 15, sorted by vendor, then invoice number, something like if A2 = A3 AND B2 = B3, 1,0, but Id like to just add to the macro so its one smooth processes instead of running one macro, manually adding an IF statement, then running another macro.
Any help is greatly appreciated!
[TABLE="width: 161"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Walmart[/TD]
[TD]114[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]852[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]444[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]5721[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]P874103[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]54984[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]2574[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]741[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]88[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]4555[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]28407[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]T456[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]8730[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]F987[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]258[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]114[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]54846[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]2013[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]289[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]147[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]963[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]221874[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]28407[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]654[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]2471[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]369[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]R5874[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]56478[/TD]
[/TR]
</tbody>[/TABLE]
I thought about maybe a nested if statement in column 15, sorted by vendor, then invoice number, something like if A2 = A3 AND B2 = B3, 1,0, but Id like to just add to the macro so its one smooth processes instead of running one macro, manually adding an IF statement, then running another macro.
Any help is greatly appreciated!
[TABLE="width: 161"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Walmart[/TD]
[TD]114[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]852[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]444[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]5721[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]P874103[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]54984[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]2574[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]741[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]88[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]4555[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]28407[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]T456[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]8730[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]F987[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]258[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]114[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]54846[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]2013[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]289[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]147[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]963[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]221874[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]28407[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]654[/TD]
[/TR]
[TR]
[TD]Kmart[/TD]
[TD]2471[/TD]
[/TR]
[TR]
[TD]Walmart[/TD]
[TD]369[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]R5874[/TD]
[/TR]
[TR]
[TD]ABC Liquor[/TD]
[TD]56478[/TD]
[/TR]
</tbody>[/TABLE]