Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

XLS  Matching to columns

Posted on 2014-02-10
2
Medium Priority
?
138 Views
Last Modified: 2014-02-10
Hi all

   I’m not an XLS person and I have a file with 2 columns of names. What I need to do is match names in column A to names in column b  and print in column C the names of column A that have a match in column B something like the example below

John      Paul       Paul
Paul      John      John
dan      Margret       dan
margret      Peter      Peter
peter      Robert       Dan = no match in B
0
Comment
Question by:d_asselin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Ken Butters earned 2000 total points
ID: 39848191
I've attached a spreadsheet that has a formula in Column C that will use Vlookup function to accomplish what you want.

Here is formula in C1... then did fill down to C5.
=IF(ISNA(VLOOKUP(A1,B:B,1,FALSE)),CONCATENATE(A1," = No match in B"),VLOOKUP(A1,B:B,1,FALSE))

what this does is take the value of John in A1 and checks to see if it can be found in column B.  If it can be found in Column B, it evaluates to the name in column A.

If it cannot be found... it takes the name in Column a and says it cannot be found in B.
Book1--1-.xlsx
0
 

Author Closing Comment

by:d_asselin
ID: 39848259
Perfect thank you

Dan
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

636 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