Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2014, 12:35 AM
sjp1966 sjp1966 is offline comparing data Windows XP comparing data Office 2007
Novice
comparing data
 
Join Date: Mar 2012
Posts: 21
sjp1966 is on a distinguished road
Default comparing data

Hi

I wonder if someone could advise if the following is possible.



I have an excel sheet that has 2 columns of data. The data is from different sources but will always consist of email addresses.

I want to compare column A with Column B to highlight any duplicate email addresses that may show over both columns.

Is this possible and if so how do I do it.

Thanks

Steve
Reply With Quote
  #2  
Old 07-22-2014, 06:35 AM
shilabrow shilabrow is offline comparing data Windows Vista comparing data Office 2007
Advanced Beginner
 
Join Date: Apr 2014
Posts: 45
shilabrow is on a distinguished road
Default

Hi Steve, This formula should help you. Create a third column and insert formula in C2 assuming A1 and B1 are titles and drag down or double click small + sign on right end of the formula cell to paste down . What the formula below is saying is, look at Column A and compare with individual cell in copy B, if any duplicate "Duplicate" and if not "No". I hope this helps.

=IF(COUNTIF($A:$A,B2)>=1,"Duplicate","No")
Reply With Quote
  #3  
Old 07-22-2014, 08:32 AM
sjp1966 sjp1966 is offline comparing data Windows XP comparing data Office 2007
Novice
comparing data
 
Join Date: Mar 2012
Posts: 21
sjp1966 is on a distinguished road
Default

Hi Shilabrow

I think it is partially working. I am assuming that the B2 portion of your formula looks at the data in B2 and compare it to the whole column?

Thing is one column is 923 lines of names, and I need to compare a list that is 304 lines

So say A2 onwards is 923 names, B2 onwards is 304 names, I need column C to say are any of the 304 names appearing in the list of 923 names? (not sure if that makes sense, I think the formula so far (unless I am using it incorrectly) is looking at one name at a time.
Reply With Quote
  #4  
Old 07-22-2014, 10:36 AM
shilabrow shilabrow is offline comparing data Windows Vista comparing data Office 2007
Advanced Beginner
 
Join Date: Apr 2014
Posts: 45
shilabrow is on a distinguished road
Default

sjp1966, I am confused because from your request the formula should work. All duplicates that come out in Cell C are those entries that are 304 names while all NO that it spills out are those part of 923 names in Column A that are not in Column B.

Note, the B2 portion of the Formula above looks at Column A and gives result.

OR since Column A is 923 lines and Column B is 304, use as below and copy down.

=IF(COUNTIF($B:$B,A2)>=1,"Duplicate","No")

hope this works. All duplicate are 304 and all No are others...
Reply With Quote
  #5  
Old 07-23-2014, 12:39 AM
sjp1966 sjp1966 is offline comparing data Windows XP comparing data Office 2007
Novice
comparing data
 
Join Date: Mar 2012
Posts: 21
sjp1966 is on a distinguished road
Default

Hmmm, ok ill give it another go.

When I did it the column that should show duplicate or no only had no in it.

So I added my name at the bottom of each column (a and b) and low and behold duplicate appeared next to my name.

I then changed one of the names at the top of column A to match a random name in column B, the no didn't change to duplicate, I reran the query (using the drag cell option) and the column still said no.
Reply With Quote
  #6  
Old 07-23-2014, 09:25 AM
gebobs gebobs is offline comparing data Windows 7 64bit comparing data Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

It should work. I've reproduced shilabrow's solution attached here.
Attached Files
File Type: xlsx DupCheck.xlsx (8.6 KB, 12 views)
Reply With Quote
  #7  
Old 07-23-2014, 11:43 AM
sjp1966 sjp1966 is offline comparing data Windows XP comparing data Office 2007
Novice
comparing data
 
Join Date: Mar 2012
Posts: 21
sjp1966 is on a distinguished road
Default

Yep it worked, I entered the code in again... not sure why it didnt the first time, a typo from me perhaps.

thanks guys

Steve
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing two excel worksheets SaneMan Excel 1 06-27-2012 07:52 PM
comparing data Comparing Large Documents KatiedlC Word 1 06-01-2011 08:22 PM
Comparing Data - MS Excel ramadevidokkuud Excel 1 05-19-2011 05:52 AM
macro for comparing data from 3 columns and pasting into another worksheet ashukla Excel 1 06-24-2009 05:01 PM
comparing data Comparing Data leroytrolley Excel 1 08-09-2008 08:34 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:24 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