Solved

how to use vlook up for comma separated values

Posted on 2011-03-24
4
252 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
[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
4 Comments
 
LVL 39

Expert Comment

by:nutsch
ID: 35212788
=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
ID: 35212979
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
ID: 35213008
Coming back, Kris?
0
 
LVL 12

Expert Comment

by:tilsant
ID: 35213044
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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
excel 2013 keeps 4 29
what is the 64bit version of this window API? 2 23
Excel - merge column values 3 21
Combining match and vlookup??? 4 24
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

738 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