Change value in cell which was selected from dropdown list to another value

harrysolomon

New Member
Joined
Mar 6, 2002
Messages
25
I have a worksheet with a data validation dropdown list which the users will select from. The values contained in the dropdown list are the short (i.e. "user-friendly") descriptions of the values in a larger list. What I'd like to do is, when the user has selected the value they want from the dropdown I want to take that value and look it up on the larger list (VLOOKUP maybe?) and then populate the cell with the corresponding "Code" value for the entry they have selected.

For example, the full list has an entry with a "Short Name" value of Argentina and a "Code" value of ISOCountry_AR.
The data validation dropdown list I've added to Cell C2 contains the value Argentina and when the user selects this value, I want C2 to be populated
with the corresponding code value of ISOCountry_AR.

Thanks,
harrysolomon
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
vlookup sounds like a winner in this case.

Do you know how to use the vlookup function?
 
Upvote 0
Yes, I use VLOOKUP frequently but the issues I'm having with this particular scenario are (1) changing the value of the current cell from the value selected in the data validation dropdown list to the VLOOKUP formula and (2) using the VLOOKUP to change the value of that same cell. I tested VLOOKUP to accomplish this and it threw an error message about creating a circular reference.
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

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