#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default VLOOKUP

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default VLOOKUP

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default VLOOKUP

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 09:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"