#1
|
|||
|
|||
Looking for duplicates across two files
I'm using the formula below in column A of Book2.xlsm to try to find duplicate addresses in the file Book1.xlsx. I'd like the cells in Book2.xlsm column A to be blank if the respective cell in column F is blank, and if the respective cell in column F is not blank, column A should show "Duplicate" if an exact match exists in column D of Book1.xlsx OR "New" if an exact match does not exist in column D of Book1.xlsx.
=IF(ISBLANK(F2),"",IFERROR(IF(MATCH(F2,'C:\Temp\PO TS\[Book1.xlsx]ALL'!$D$2:$D$2001)>0,"Duplicate"),"New")) I've gotten the basics right as far as I can tell, because I am getting "New" or "Duplicate" in column A - but not in the correct locations. I've tried changing the format of the columns to different types, but still no luck so far. Any help greatly appreciated. I'm also open to other methods to do this such as vba/macro or something not formula based (like Conditional Formatting that would highlight the row of the duplicates), this is just what I came up with. |
#2
|
||||
|
||||
Try:
=IF(F2="","",IF(COUNTIF([Book1.xlsx]ALL!$D:$D,F:F)=0,"New","Duplicate"))
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks macropod - that worked great! I'm so familiar with the ISBLANK and ISERROR functions I never looked into using COUNTIFS. Great solution!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
in each row mark duplicates | roderh | Excel Programming | 9 | 09-29-2016 09:01 PM |
Sequencing duplicates | balajigade | Excel Programming | 3 | 10-04-2015 03:31 PM |
Removing duplicates | saurabhlotankar | Excel Programming | 14 | 05-26-2015 10:13 AM |
Mail duplicates | mixy | Outlook | 0 | 02-10-2011 12:54 AM |
sum of duplicates | zxmax | Excel | 1 | 09-29-2006 08:29 PM |