Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Charlie
 
Posts: n/a
Default convert column data into text

I need to convert a column of data (ie 1 2 3 4) into a csv text string (ie
1,2,3,4), are there any excel functions that will help...thanks for the help
  #2   Report Post  
Naz
 
Posts: n/a
Default

Hi

You can use this macro, adjusting it for your needs.


Sub BigConcatenate()

ColumnLenght = WorksheetFunction.Count(Range("A1:A1000")) - 1


For x = 0 To ColumnLenght

csvresult = csvresult & "," & Range("A1").Offset(x, 0)

Next x

Range("B2") = csvresult

End Sub

Simply paste it into a module in the Visual Basic Editor (VBE), pressing Alt
and F11 to get to the VBE. Then run from Excel ...Tool...Macros....Run.

Hope that helps

____________________
Naz
London


"Charlie" wrote:

I need to convert a column of data (ie 1 2 3 4) into a csv text string (ie
1,2,3,4), are there any excel functions that will help...thanks for the help

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
How can I convert a data from multiple rows into 1 column? yudi_lks Excel Worksheet Functions 10 January 30th 05 03:47 AM
In a column of text data, how do I delete random cells that have . Minivann Excel Discussion (Misc queries) 2 January 26th 05 09:07 PM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM
convert a column of text to proper Harvey New Users to Excel 4 December 17th 04 02:25 PM
how do I easily convert a single column of text (multiple rows si. philmah Excel Discussion (Misc queries) 2 December 16th 04 12:24 AM


All times are GMT +1. The time now is 06:08 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"