Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default assign file numbers to names

There are about 500 managers, when I choose a manager's name from a drop down
(in a form) I want excel to insert the manager's file number in an adjacent
cell.

i.e. Joe Button - 1875
Sally Field - 1745
Carl Redding - 1590

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default assign file numbers to names

Try this:

Say you have the list feeding the drop down in A5:A7 and the manager file
numbers in B5:B7

In column D put the drop down list letting the users pick the manager
In column E, next to the managers name, put the following formula

=IF(ISBLANK(D5),"",VLOOKUP(D5,$A$5:$B$7,2,FALSE))

The ISBLANK function is used to prevent error indicators from appearing when
a cell in column D is empty

Perhaps add protection for the data in column E





"NeSchw6G" wrote:

There are about 500 managers, when I choose a manager's name from a drop down
(in a form) I want excel to insert the manager's file number in an adjacent
cell.

i.e. Joe Button - 1875
Sally Field - 1745
Carl Redding - 1590

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default assign file numbers to names

It worked! Thank you!

"Flick Olmsford" wrote:

Try this:

Say you have the list feeding the drop down in A5:A7 and the manager file
numbers in B5:B7

In column D put the drop down list letting the users pick the manager
In column E, next to the managers name, put the following formula

=IF(ISBLANK(D5),"",VLOOKUP(D5,$A$5:$B$7,2,FALSE))

The ISBLANK function is used to prevent error indicators from appearing when
a cell in column D is empty

Perhaps add protection for the data in column E





"NeSchw6G" wrote:

There are about 500 managers, when I choose a manager's name from a drop down
(in a form) I want excel to insert the manager's file number in an adjacent
cell.

i.e. Joe Button - 1875
Sally Field - 1745
Carl Redding - 1590

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
How to randomly assign numbers to names? Empress Excel Discussion (Misc queries) 6 September 10th 06 10:27 AM
Assign charts names in VBA? PaulW Excel Discussion (Misc queries) 4 May 11th 06 01:13 PM
assign numbers a value, then get percentage Lt. R Excel Worksheet Functions 1 April 11th 06 06:02 PM
sorting names alphabetically when names may start with numbers John Smith Excel Discussion (Misc queries) 3 May 11th 05 08:06 PM
Assign values to names in a drop-down list? Barry L Excel Discussion (Misc queries) 3 March 8th 05 04:21 PM


All times are GMT +1. The time now is 02:34 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"