Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Create comma-delimited string from dynamic range?

I have a column of student ID numbers, a list of indefinite length,
like this:

A
40001
40003
40004
40008
..
..
..

And I just need to create a string from these numbers, comma
delimited, in another cell for use elsewhere. The above would become:
40001,40003,40004,40008.

If the list were not of indefinite length (but not more than, say,
10), it would be very trivial indeed. I can create a dynamic range,
but don't know what to do with it for this application. Any
suggestions for a slick efficient way to get that string via formula?
Or should I just go for a macro to loop through the range?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Create comma-delimited string from dynamic range?

Hi,

Here's one way:

Insert or use a blank column, then if your data starts in A1 in b2 type:
=A1&","&A2, in B3 type: =B2&","&A3, copy B3 to the last data cell which you
can then copy and paste, delete the column when done.

Hope this helps!
Jean-Guy

"Ptyrider" wrote:

I have a column of student ID numbers, a list of indefinite length,
like this:

A
40001
40003
40004
40008
..
..
..

And I just need to create a string from these numbers, comma
delimited, in another cell for use elsewhere. The above would become:
40001,40003,40004,40008.

If the list were not of indefinite length (but not more than, say,
10), it would be very trivial indeed. I can create a dynamic range,
but don't know what to do with it for this application. Any
suggestions for a slick efficient way to get that string via formula?
Or should I just go for a macro to loop through the range?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Create comma-delimited string from dynamic range?

Thanks, not a bad idea!

pinmaster wrote:
Hi,

Here's one way:

Insert or use a blank column, then if your data starts in A1 in b2 type:
=A1&","&A2, in B3 type: =B2&","&A3, copy B3 to the last data cell which you
can then copy and paste, delete the column when done.

Hope this helps!
Jean-Guy

"Ptyrider" wrote:

I have a column of student ID numbers, a list of indefinite length,
like this:

A
40001
40003
40004
40008
..
..
..

And I just need to create a string from these numbers, comma
delimited, in another cell for use elsewhere. The above would become:
40001,40003,40004,40008.

If the list were not of indefinite length (but not more than, say,
10), it would be very trivial indeed. I can create a dynamic range,
but don't know what to do with it for this application. Any
suggestions for a slick efficient way to get that string via formula?
Or should I just go for a macro to loop through the range?

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
create a ASCII semi-colon or comma delimited file Beverly Blake Excel Worksheet Functions 2 July 21st 07 07:20 PM
Comma Delimited Numbers Spannerman Excel Discussion (Misc queries) 3 April 3rd 07 08:19 AM
Create a form to open a comma delimited file ~Rick Excel Discussion (Misc queries) 1 September 29th 05 08:25 PM
Comma delimited question Carol Excel Discussion (Misc queries) 2 January 15th 05 11:32 AM
how do I create comma and double quote delimited file mikeb Excel Discussion (Misc queries) 1 November 29th 04 10:01 PM


All times are GMT +1. The time now is 11:38 AM.

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

About Us

"It's about Microsoft Excel"