Solved

Need formula example

Posted on 2014-01-24
2
250 Views
Last Modified: 2014-01-24
In the attached spreadsheet, I seek to find duplicate ID numbers between Column A (List 1) and Column D (List 2). You will notice that the values of E3 and F3 (both have bad data) does not equal the values of B4 and C4, though they are associated with the same ID.  In column G (Matched), a formula drops in the duplicated ID numbers.

In this example, I want H4 and I4 to contain the (bad) data from E3 and F3, but only because the data is mismatched. If it all matched correctly, I would want the matched name and address to remain blank, like what you see with the matched ID 5 in G7.

What formula is required in H4 and I4?
Book1.xlsx
0
Comment
Question by:K_Deutsch
2 Comments
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 39808015
Here are two formulas for cells H3 and I3:
=IF($G3="","",IF($B3=VLOOKUP($A3,$D:$F,2,FALSE),"",VLOOKUP($A3,$D:$F,2,FALSE)))
=IF($G3="","",IF($C3=VLOOKUP($A3,$D:$F,3,FALSE),"",VLOOKUP($A3,$D:$F,3,FALSE)))

If G3 displays a blank, the formulas return a blank. If G3 displays a number but the corresponding data in B3 doesn't match column E, the first formula returns the mismatched value from column E. Otherwise, it returns an empty string.
0
 

Author Closing Comment

by:K_Deutsch
ID: 39808058
Perfect, thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
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;…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

820 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