Solved

Find where data in column b does not exist anywhere in column a data list

Posted on 2014-09-17
4
233 Views
Last Modified: 2014-09-17
Hi.  I am importing a large amount of data from excel import lists into a 3rd party database.  User populated the lists manually but I'm finding inconsistencies in the data and I'm looking for a quick way to compare and correct these inconstencies.  User was tasked with creating data lists which in turn are used to populate a number of import spreadsheets.  For example: DATA LIST A has maybe 80 records consisting of department names.  The import spreadsheet has a number of columns consisting of employee, ID, department, etc..  Import spreadsheet data must exist on one of these data lists.  I need to find where a column from the import spreadsheet does not match to an entry in the corresponding data list so I can change it to duplicate a value that exists on the data list.  I was going to import all into access and compare there but thought there must be a way to do this in excel.
Instead of trying to find a method to compare across sheets, I can pull both columns of data into a single spreadsheet and just compare columns to make this easier.  Is there a fairly simple way to execute this? thanks
0
Comment
Question by:valmatic
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
Ken Butters earned 500 total points
ID: 40329026
given a list of possible values in column A

Then to check if the values in Column B are in Column A:

create new data with this formula in Column C:

=IF(ISERROR(MATCH(B1,$A$1:$A$6,0)),"Item Not Found","OK")

(I've attached a sample workbook)
0
 
LVL 14

Expert Comment

by:peetjh
ID: 40329027
It may not be the most effective but if you have all the data in the workbook I usually add a column for comparison and put in a formula like "=Countif(A1:A500,B1)" then after I have copied that down for all the rows. Copy and paste special  --> values then you can sort by your new column to find the ones that match or do not.
0
 
LVL 19

Expert Comment

by:Ken Butters
ID: 40329030
somehow attachment did not make it... here it is:
Book1.xlsx
0
 
LVL 7

Author Closing Comment

by:valmatic
ID: 40329157
Ken that worked great.  It was a little messy since I had delimited data in columnB but I worked it out...

thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now