Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need help with the following:
On Sheet 1, I have a list of about 100 employees: A= Last Name, B=First name, C= (blank). On sheet 2, I have a list of all employees (40,000+) broken up in 3 columns: A=employee ID, B= Last Name, C= First Name I want to make a function in cell C4 of sheet 1 that would pull the employee ID from sheet 2. I am trying to avoid searching one by one. Can anyone help??? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The firstname/lastname combination will be unique on sheet2?
=index(sheet2!$a$1:$a$100, match(1,(a2=sheet2!$b$1:$b$100) *(b2=sheet2!$c$1:$c$100),0)) But read these instructions... Saved from a previous post: If you want exact matches for just two columns (and return a value from a third), you could use: =index(othersheet!$c$1:$c$100, match(1,(a2=othersheet!$a$1:$a$100) *(b2=othersheet!$b$1:$b$100),0)) (all in one cell) This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it correctly, excel will wrap curly brackets {} around your formula. (don't type them yourself.) Adjust the range to match--but you can only use the whole column in xl2007. This returns the value in othersheet column C when column A and B (of othersheet) match A2 and B2 of the sheet with the formula. And you can add more conditions by just adding more stuff to that product portion of the formula: =index(othersheet!$d$1:$d$100, match(1,(a2=othersheet!$a$1:$a$100) *(b2=othersheet!$b$1:$b$100) *(c2=othersheet!$c$1:$c$100),0)) ferosha42 wrote: I need help with the following: On Sheet 1, I have a list of about 100 employees: A= Last Name, B=First name, C= (blank). On sheet 2, I have a list of all employees (40,000+) broken up in 3 columns: A=employee ID, B= Last Name, C= First Name I want to make a function in cell C4 of sheet 1 that would pull the employee ID from sheet 2. I am trying to avoid searching one by one. Can anyone help??? -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
First, the same comment you saw at the beginning of the other post - with 40000 names I doubt that a first name last name combination will be unique!! The following non-array solution will work: =LOOKUP(A2&B2,B1:B40&C1:C40,A1:A40) With this approach the 40000 records should be sorted on the last name field. -- Cheers, Shane Devenshire "ferosha42" wrote: I need help with the following: On Sheet 1, I have a list of about 100 employees: A= Last Name, B=First name, C= (blank). On sheet 2, I have a list of all employees (40,000+) broken up in 3 columns: A=employee ID, B= Last Name, C= First Name I want to make a function in cell C4 of sheet 1 that would pull the employee ID from sheet 2. I am trying to avoid searching one by one. Can anyone help??? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Vlookup in vlookup - taking the result as array name | Excel Worksheet Functions | |||
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP | Excel Discussion (Misc queries) | |||
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) | New Users to Excel | |||
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( | Excel Worksheet Functions | |||
Vlookup info being used without vlookup table attached? | Excel Worksheet Functions |