Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default Employee list

In column A, I have a list of employee numbers. In column B I have their
first name, and in column C their last name. What I want to do is to enter
an employee number in a cell, and for that cell to return their first and
second name. How can I do this please?

---
David Scott
Hampshire, England


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,345
Default Employee list

Assuming that the labels are in Row 1 and the cell with the Employee Number
look up in in E2 try:

=IF(ISNA(VLOOKUP(E2,A2:C100,2,FALSE)&" "&VLOOKUP(E2,A2:C100,3,FALSE)),"No
Match found",VLOOKUP(E2,A2:C100,2,FALSE)&" "&VLOOKUP(E2,A2:C100,3,FALSE))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Dave" wrote in message
...
In column A, I have a list of employee numbers. In column B I have their
first name, and in column C their last name. What I want to do is to enter
an employee number in a cell, and for that cell to return their first and
second name. How can I do this please?

---
David Scott
Hampshire, England




  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default Employee list

To return the names in the same cell in which you enter the ID number would
require VBA code.

To return the names to another cell would require a VLOOKUP formula in that
cell.

Assuming a table of numbers and names in A1:C10

In D1 enter the ID Number.

In E1 enter =VLOOKUP(D1,$A$1:$C$10,2,FALSE)& " " &LOOKUP(D1,$A$1:$C$10,3,FALSE)


Gord Dibben MS Excel MVP


On Mon, 8 Jan 2007 21:06:11 -0000, "Dave" wrote:

In column A, I have a list of employee numbers. In column B I have their
first name, and in column C their last name. What I want to do is to enter
an employee number in a cell, and for that cell to return their first and
second name. How can I do this please?

---
David Scott
Hampshire, England


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default Employee list

Thanks Guys! Really useful.

--
---
David Scott
Hampshire, England
"Dave" wrote in message
...
In column A, I have a list of employee numbers. In column B I have their
first name, and in column C their last name. What I want to do is to enter
an employee number in a cell, and for that cell to return their first and
second name. How can I do this please?

---
David Scott
Hampshire, England



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
Automatic Update of Dropdown List Box data Rajat Excel Worksheet Functions 4 March 8th 12 05:09 PM
Drop-Down List Choice Affects Multiple Cells? Patrick R Excel Worksheet Functions 5 November 24th 06 12:33 AM
Editing a list of data hot dogs Excel Discussion (Misc queries) 3 November 1st 06 12:42 PM
Creating a List based on your choice from Another List Cristi Excel Discussion (Misc queries) 1 August 14th 06 06:00 PM
Refresh a Validation List? jhollin1138 Excel Discussion (Misc queries) 3 February 17th 05 05:48 PM


All times are GMT +1. The time now is 03:35 AM.

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"