Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default display list selection in a different cell

I have a combo list which is allows multiple selection.

I need to be able to display the selection in a different cell. For
multiple selections, I'd like all values in one cell separated by commas.

Example

Combo list
A
B
C
D

A & D have beeen selected.

Displayed in another cell: A, D

Please note I am using Excel 2003
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default display list selection in a different cell

There is no built in function to do that but if you are not averse to macros
this will do it for you...

Placed in a standard code module

Public Function MakeCSV(ByVal rng As Range) As String
MakeCSV = Join(Application.Transpose(rng.Value), ", ")
End Function

Which you can use in a worksheet like this
=MakeCSV(A1:A10)

--
HTH...

Jim Thomlinson


"notsomuchaguru" wrote:

I have a combo list which is allows multiple selection.

I need to be able to display the selection in a different cell. For
multiple selections, I'd like all values in one cell separated by commas.

Example

Combo list
A
B
C
D

A & D have beeen selected.

Displayed in another cell: A, D

Please note I am using Excel 2003

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default display list selection in a different cell

Sorry I missread your question. That is not what you want. Do you have a
combo box or a list box? Did you get the control from the forms toolbar or
the control toolbox?

The only way to get values out of a multiselect is with code. There is
nothing built in to do it...
--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

There is no built in function to do that but if you are not averse to macros
this will do it for you...

Placed in a standard code module

Public Function MakeCSV(ByVal rng As Range) As String
MakeCSV = Join(Application.Transpose(rng.Value), ", ")
End Function

Which you can use in a worksheet like this
=MakeCSV(A1:A10)

--
HTH...

Jim Thomlinson


"notsomuchaguru" wrote:

I have a combo list which is allows multiple selection.

I need to be able to display the selection in a different cell. For
multiple selections, I'd like all values in one cell separated by commas.

Example

Combo list
A
B
C
D

A & D have beeen selected.

Displayed in another cell: A, D

Please note I am using Excel 2003

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
Display part of list dependant on Validation list selection Jules73 Excel Worksheet Functions 0 August 12th 09 02:21 PM
Limiting selection in a cell AND linking that selection to a list Lisa Excel Discussion (Misc queries) 1 July 28th 09 05:00 PM
Updating a cell from a list selection Excelquestioner Excel Worksheet Functions 1 February 7th 08 06:23 PM
Selection of Drop down list that allows you to go to a particular cell Daphne Excel Worksheet Functions 2 June 14th 06 09:54 AM
limit cell list selection based on the selection of another list lorraine Excel Worksheet Functions 2 December 14th 04 08:17 PM


All times are GMT +1. The time now is 07:17 PM.

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"