?
Solved

how to use vlook up for comma separated values

Posted on 2011-03-24
4
Medium Priority
?
257 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 2000 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

800 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