match person with ID # with List

jay-excel

New Member
Joined
Aug 20, 2009
Messages
34
Hello,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
I am trying to create a formula or macro that when a person’s name is chosen from a drop-down list, another cell populates the person’s ID number.
<o:p></o:p>
I have two columns.
<o:p></o:p>
Column 1 has a list of people
Column 2 has the assigned id of each person
<o:p></o:p>
A2 and B2 matches the person and their ID
<o:p></o:p>
I then have a dropdown list of all the people.
I want to have another cell populate the person’s id when they are chosen from the drop-down list.
<o:p></o:p>
A1 – A5 has a list of people
B1 – B5 has a list of the people’s ID
<o:p></o:p>
D4 has a drop-down list of the people
E4 à I want this cell to show the person’s ID
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Great help everyone, thank you very much!
---

What are the differences between:

=VLOOKUP() & =INDEX(,MATCH())
 
Upvote 0
Hello jay-excel,

One big advantage that INDEX/MATCH has over VLOOKUP is that it doesn't rely on the lookup_value (in the table_array) having to be in the first Column. Other than that, it's pretty much personal preference.

This link may be useful:

http://contextures.com/xlFunctions03.html

Matty
 
Upvote 0

Forum statistics

Threads
1,222,902
Messages
6,168,938
Members
452,227
Latest member
sam1121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top