ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   LISTS (https://www.excelbanter.com/excel-discussion-misc-queries/95422-lists.html)

sedonovan

LISTS
 
I want to create a list of codes of initials as a drop down list - which I
know how to do,
but I want them to see the full name but only the initials to be inputted
into the table

eg they see
JB Joe Bloggs
SD Suzie Donovan
JD Jack Daniels

but only the SD part is inserted into the spreadsheet,

is this possible??

Many thanks in advance

Max

LISTS
 
Here's one play to achieve this
using a combo box from the control toolbox toolbar ..

A sample construct is available at:
http://www.savefile.com/files/5512788
Combo box from control toolbox toolbar_example.xls

Assume source data is in Sheet1!A1:B3
col A = names , col B = initials, viz.:

Joe Bloggs JB
Suzie Donovan SD
Jack Daniels JD

(switch it the other way around)

In say, Sheet2,

Draw a combo box from the control toolbox toolbar
Right-click on the combo box Properties

Set the properties of the combo box to:
ListFillRange: Sheet1!A1:B3
LinkedCell: B2
BoundColumn: 2
ColumnCount: 1

Click "Exit Design Mode" on the Control Toolbox toolbar, and test it out.
The combo box droplist will display only the names, & selecting the name will
place the corresponding initial into the link cell: B2

And if we set ColumnCount to 2, then the combo box *droplist* will display
both names & initials (this doesn't affect the usage, only the initial will
be placed into B2)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"sedonovan" wrote:
I want to create a list of codes of initials as a drop down list - which I
know how to do,
but I want them to see the full name but only the initials to be inputted
into the table

eg they see
JB Joe Bloggs
SD Suzie Donovan
JD Jack Daniels

but only the SD part is inserted into the spreadsheet,

is this possible??

Many thanks in advance


sedonovan

LISTS
 
Thanks, that WAS helpful, I've done that now, but what about information I
need to store in B3...Bx? Is that possible?

"Max" wrote:

Here's one play to achieve this
using a combo box from the control toolbox toolbar ..

A sample construct is available at:
http://www.savefile.com/files/5512788
Combo box from control toolbox toolbar_example.xls

Assume source data is in Sheet1!A1:B3
col A = names , col B = initials, viz.:

Joe Bloggs JB
Suzie Donovan SD
Jack Daniels JD

(switch it the other way around)

In say, Sheet2,

Draw a combo box from the control toolbox toolbar
Right-click on the combo box Properties

Set the properties of the combo box to:
ListFillRange: Sheet1!A1:B3
LinkedCell: B2
BoundColumn: 2
ColumnCount: 1

Click "Exit Design Mode" on the Control Toolbox toolbar, and test it out.
The combo box droplist will display only the names, & selecting the name will
place the corresponding initial into the link cell: B2

And if we set ColumnCount to 2, then the combo box *droplist* will display
both names & initials (this doesn't affect the usage, only the initial will
be placed into B2)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"sedonovan" wrote:
I want to create a list of codes of initials as a drop down list - which I
know how to do,
but I want them to see the full name but only the initials to be inputted
into the table

eg they see
JB Joe Bloggs
SD Suzie Donovan
JD Jack Daniels

but only the SD part is inserted into the spreadsheet,

is this possible??

Many thanks in advance


Max

LISTS
 
"sedonovan" wrote:
.. but what about information I need to store in B3...Bx?


Ah, then it's easier to use data validation ..

Assuming the same setup, viz.: names & initials in Sheet1's A1:B3

Select A1:A3, and name the range as: Name
(via: Insert Name Define)

Then in Sheet2,

Select the range say, A2:A20
Click Data Validation, make the settings:
Allow: List
Source: Name
Click OK

Then put in B2, and copy down to B20:
=IF(A2="","",VLOOKUP(A2,Sheet1!A:B,2,0))

Col B will extract the initials for the names selected in col A

Adapt to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

sedonovan

LISTS
 
That's wonderful! Thanks

"Max" wrote:

"sedonovan" wrote:
.. but what about information I need to store in B3...Bx?


Ah, then it's easier to use data validation ..

Assuming the same setup, viz.: names & initials in Sheet1's A1:B3

Select A1:A3, and name the range as: Name
(via: Insert Name Define)

Then in Sheet2,

Select the range say, A2:A20
Click Data Validation, make the settings:
Allow: List
Source: Name
Click OK

Then put in B2, and copy down to B20:
=IF(A2="","",VLOOKUP(A2,Sheet1!A:B,2,0))

Col B will extract the initials for the names selected in col A

Adapt to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


Max

LISTS
 
"sedonovan" wrote:
That's wonderful! Thanks


You're welcome !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


All times are GMT +1. The time now is 03:10 AM.

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