Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropdown list with two columns

Status
Not open for further replies.

dallen43

Programmer
Mar 15, 2005
84
US
Using Excel 2003...

Our users need to enter a code "01" or "02" in a column. I know I can use validation and create a dropdown with these two values.

But to make it easier for our users, I would also like to display the values these codes represent, "01 Return to Vendor" and "02 Destroy for Allowance". The value in the field must return only 01 or 02 not the description.

I hope I've made myself clear.

Thanks in advance,
Deb
 
Using validation then the dropdown would include the text and another column would have to be used for the code. Use a formula like
=if(istext(A1),left(A1,2),"")
or
=if(istext(A1),left(A1,find(" ",A1)-1),"")

More than that will require VBA, I believe - forum707

Gavin
 
How about placing the value/description combinations in the Data Validation -> Input Message?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top