Pick lists that shows one text string but picks different text...

bbbb1234

Board Regular
Joined
Aug 8, 2002
Messages
150
Office Version
  1. 365
Platform
  1. Windows
I have a list of state names on Col A and the two letter state abbreviation in Col B. I want a drop down menu in cells, say C2 through C10, that shows the full state name when the drop down is selected, but when a state is selected, only the two letter abbreviation is entered in the cell. I thought about using Data Validation but could not figure out how to make this work.

I prefer to not use VBA.

Thoughts on how to do this?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi @bbbb1234

I'm afraid that you can't get the desired results without VBA, because Data Validation only shows what's in a list, but not a different value.
However you could add another cell or column to show your results.

Book1.xlsm
AB
1state nameabbrev.
2
3ArizonaAZ
4CaliforniaCA
5FloridaFL
6LouisianaLA
7NebraskaNE
8New YorkNY
9OhioOH
10TexasTX
11VirginiaVA
12WyomingWY
13
14 
Sheet31
Cell Formulas
RangeFormula
B14B14= IF( A14<>"",XLOOKUP(A14,A3:A12,B3:B12),"")
Cells with Data Validation
CellAllowCriteria
A14List=$A$2:$A$12


Here is a screen capture:
Excel Drop Down (GIF)
 
Upvote 0
Hi @bbbb1234

I'm afraid that you can't get the desired results without VBA, because Data Validation only shows what's in a list, but not a different value.
However you could add another cell or column to show your results.

Book1.xlsm
AB
1state nameabbrev.
2
3ArizonaAZ
4CaliforniaCA
5FloridaFL
6LouisianaLA
7NebraskaNE
8New YorkNY
9OhioOH
10TexasTX
11VirginiaVA
12WyomingWY
13
14 
Sheet31
Cell Formulas
RangeFormula
B14B14= IF( A14<>"",XLOOKUP(A14,A3:A12,B3:B12),"")
Cells with Data Validation
CellAllowCriteria
A14List=$A$2:$A$12


Here is a screen capture:
Excel Drop Down (GIF)
Hi PeteWright -
Thanks for providing the very creative solution!! I was hoping there was a way to do this without VBA but figured there was not. Unfortunately, I cannot figure out how to make your creative solution work in my current application. Could you provide the VBA code that you would recommend?
Many thanks!!!
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,252
Members
449,075
Latest member
staticfluids

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