Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VLOOKUP question

Status
Not open for further replies.

ranebow

Programmer
Mar 8, 2003
110
US
I have employee initials in spreadsheet "A". In spreadsheet "B" I have initials and names. I'm going to do a VLOOKUP from "A" to "B" to put the names in spreadsheet "A".

Now comes the problem. Spreadsheet "B" contains ALL employees....including new hires.

When doing the VLOOKUP is there any way to mark the employees in "B" that I've gotten a hit on? That way I can tell who isn't on "A" so I can add them.
 
Do a VLookup the other way.

Example:
On sheet B enter something like
=if(iserror(vlookup(A2,sheetA!$a$2:$b$50,2,0)),"Missing","")

[tt]_____
[blue]-John[/blue][/tt]

Help us help you. Please read FAQ181-2886 before posting.
 
I thought about doing that. I just didn't want to have to do two. I was being lazy. Was hoping there was a way I could do it all at once. This will work.

Thanks!
 
Glad to help.

Remember: a formula in a cell cannot affect any other cell.

One additional idea, though.... If this is going to be an ongoing process, you could use a VLookup in a Conditional Formatting statement on SheetB, then have the cells change fill color when the initials aren't found on SheetA.

[tt]_____
[blue]-John[/blue][/tt]

Help us help you. Please read FAQ181-2886 before posting.
 
I've never done that in a conditional formatting statement. Now I MUST go play & see what I can do!

THANKS!
 
[cheers]

HINT: You can't use references to another sheet in a Conditional Formatting formula, so you will have to use a Named Range that includes the column containing the initials on SheetA.

Feel free to ask questions if you run into problems with it.

[tt]_____
[blue]-John[/blue][/tt]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top