Solved

how to use vlook up for comma separated values

Posted on 2011-03-24
4
248 Views
Last Modified: 2012-05-11
In column comma separted values(with firstname,lastname) are there in other sheet first name and last name in the 2 tabs.

how to use vlookup in this case to find the empid? vlookup.xlsx
0
Comment
Question by:chaitu chaitu
  • 2
4 Comments
 
LVL 39

Expert Comment

by:nutsch
Comment Utility
=INDEX($D$2:$D$5,MATCH(1,($F$2:$F$5=RIGHT(A2,LEN(A2)-FIND(",",A2)))*($E$2:$E$5=LEFT(A2,FIND(",",A2)-1)),0))

in cell B2, validated by Ctrl+Shift+Enter (this is an array formula)

Thomas
0
 
LVL 18

Accepted Solution

by:
krishnakrkc earned 500 total points
Comment Utility
Hi,

=INDEX($D$2:$D$5,MATCH(A2,$E$2:$E$5&","&$F$2:$F$5,0))

It's an array formula. Confirmed with CTRL + SHIFT + ENTER

Kris
0
 
LVL 39

Expert Comment

by:nutsch
Comment Utility
Coming back, Kris?
0
 
LVL 12

Expert Comment

by:tilsant
Comment Utility
Since empid is going to be a number, you can use (in cell B2 and drag down):
=SUMPRODUCT($D$2:$D$5,--(A2=$E$2:$E$5&","&$F$2:$F$5))
(Not an Array Formula)


Tils.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
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…

728 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

9 Experts available now in Live!

Get 1:1 Help Now