#1   Report Post  
Posted to microsoft.public.excel.misc
sedonovan
 
Posts: n/a
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
sedonovan
 
Posts: n/a
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default 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
---
  #5   Report Post  
Posted to microsoft.public.excel.misc
sedonovan
 
Posts: n/a
Default 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
---



  #6   Report Post  
Posted to microsoft.public.excel.misc
Max
 
Posts: n/a
Default LISTS

"sedonovan" wrote:
That's wonderful! Thanks


You're welcome !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP and Multi Lists dpatte601 New Users to Excel 6 May 17th 06 10:40 AM
Compare lists teejay Excel Worksheet Functions 0 January 24th 06 03:30 PM
Excel - need a function to compare lists JerryMatson Excel Worksheet Functions 1 November 24th 05 04:09 PM
Comparing 2 Customer Lists to Identify Shared Customers carl Excel Worksheet Functions 2 January 26th 05 07:17 PM


All times are GMT +1. The time now is 06:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"