Solved

how to use vlook up for comma separated values

Posted on 2011-03-24
4
250 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
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…

861 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