Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-02-2016, 07:16 AM
IrieMon69 IrieMon69 is offline Looking for duplicates across two files Windows 10 Looking for duplicates across two files Office 2013
Novice
Looking for duplicates across two files
 
Join Date: Nov 2016
Posts: 2
IrieMon69 is on a distinguished road
Default 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.
Attached Files
File Type: xlsx Book1.xlsx (305.9 KB, 10 views)
File Type: xlsm Book2.xlsm (60.3 KB, 10 views)
Reply With Quote
  #2  
Old 11-04-2016, 01:00 PM
macropod's Avatar
macropod macropod is offline Looking for duplicates across two files Windows 7 64bit Looking for duplicates across two files Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try:
=IF(F2="","",IF(COUNTIF([Book1.xlsx]ALL!$D:$D,F:F)=0,"New","Duplicate"))
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 11-08-2016, 03:19 AM
IrieMon69 IrieMon69 is offline Looking for duplicates across two files Windows 10 Looking for duplicates across two files Office 2013
Novice
Looking for duplicates across two files
 
Join Date: Nov 2016
Posts: 2
IrieMon69 is on a distinguished road
Default

Thanks macropod - that worked great! I'm so familiar with the ISBLANK and ISERROR functions I never looked into using COUNTIFS. Great solution!
Reply With Quote
Reply



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
Looking for duplicates across two files Removing duplicates saurabhlotankar Excel Programming 14 05-26-2015 10:13 AM
Mail duplicates mixy Outlook 0 02-10-2011 12:54 AM
Looking for duplicates across two files sum of duplicates zxmax Excel 1 09-29-2006 08:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft