ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Drop Down/List w/Code and Definition, only code entered when selec (https://www.excelbanter.com/excel-worksheet-functions/164489-drop-down-list-w-code-definition-only-code-entered-when-selec.html)

Spiritdancer

Drop Down/List w/Code and Definition, only code entered when selec
 
What do I create if I want to display a list of codes and definitions, but
only want the code to be entered in the cell when selected?
Displayed:
MX Mexico
US United States

When selected, only MX or US should be entered in the cell



Max

Drop Down/List w/Code and Definition, only code entered when selec
 
One play to achieve it here would be
to use a combo box from the control toolbox toolbar

Try this sample from my archives which illustrates:
http://savefile.com/files/221672
Combo box from control toolbox toolbar_Example2.xls
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Spiritdancer" wrote:
What do I create if I want to display a list of codes and definitions, but
only want the code to be entered in the cell when selected?
Displayed:
MX Mexico
US United States

When selected, only MX or US should be entered in the cell



Debra Dalgleish

Drop Down/List w/Code and Definition, only code entered whenselec
 
You can do this with data validation and programming. There's a sample
file he

http://www.contextures.com/excelfiles.html

Under Data Validation, look for DV0005 - Data Validation "Columns"

Spiritdancer wrote:
What do I create if I want to display a list of codes and definitions, but
only want the code to be entered in the cell when selected?
Displayed:
MX Mexico
US United States

When selected, only MX or US should be entered in the cell




--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html



All times are GMT +1. The time now is 07:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com