Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default drop down list question

hello,
I am rather new to excel programing and have a simple question. I
am hoping that someone can set me in the right direction. I have a
drop down list and the ListFillRange is set to Sheet2!$A$2:$A$5. Is
there an easy way to store a different value for each item in the
listfillrange? For example, if an item in the drop down is displayed
as Bob Smith, is there a way to store an employee number with Bob Smith
in the drop down? I hope that this is clear enough. I want to do this
so that I can use the employee number in another cell.

Thanks,
Billy

  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

What you can do is create a table of employees and their
corresponding employees numbers, and then use VLOOKUP to
return the employees number. For example, let's assume in
col. A, sheet1, you have names and in col. B, their
employees numbers.

Now let's assume your LinkedCell for your drop-down is D1
on another sheet. Use:

=VLOOKUP(D1,Sheet1!A:B,2,0)

to pull in the employee #. For some examples on VLOOKUP,
see:

http://www.contextures.com/xlFunctions02.html
http://www.techonthenet.com/excel/formulas/vlookup.htm\

HTH
Jason
Atlanta, GA

-----Original Message-----
hello,
I am rather new to excel programing and have a simple

question. I
am hoping that someone can set me in the right

direction. I have a
drop down list and the ListFillRange is set to Sheet2!

$A$2:$A$5. Is
there an easy way to store a different value for each

item in the
listfillrange? For example, if an item in the drop down

is displayed
as Bob Smith, is there a way to store an employee number

with Bob Smith
in the drop down? I hope that this is clear enough. I

want to do this
so that I can use the employee number in another cell.

Thanks,
Billy

.

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
drop down list c Excel Discussion (Misc queries) 10 January 17th 05 11:29 PM
How to change fonts in drop down list Dennis Excel Discussion (Misc queries) 1 January 12th 05 01:49 PM
formatting drop down list dennis Excel Discussion (Misc queries) 2 January 11th 05 04:21 PM
create a drop down list with the source from a different workbook Sampath Excel Discussion (Misc queries) 2 January 8th 05 07:57 PM
How do you create a drop down list? Aviator Excel Discussion (Misc queries) 2 December 28th 04 03:07 PM


All times are GMT +1. The time now is 08:26 AM.

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

About Us

"It's about Microsoft Excel"