View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default find text from 1 col in 2nd col & return value from 3rd col

Hi,

If you names on sheet1 are in ascending sort then:

=LOOKUP(MID(B1,FIND(",",B1)+1,30),Sheet1!C:C,Sheet 1!A:A)

if not

=OFFSET(Sheet1!A$1,MATCH(MID(B1,FIND(",",B1)+1,30) ,Sheet1!C:C,)-1,)

adjust the "," by adding a space after the comma if there is one in your data.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Robert" wrote:

Hello,
I have:
Sheet1 with empoyee numbers on A:A and last names on C:C
Sheet2 with concantinated names (lastname,firstname) on B:B (always with a
comma between if that helps).

I need some kind of lookup/search formula on sheet2 A:A to extract the last
name from sheet2 B:B, then take this extracted last name and match it up on
sheet1 C:C , then return the emplyee # of sheet1 AA from the same row.

Thanks in advance for any help,
Robert