Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Convert column data to semicolon delimited text string

Hi,

I want to convert a column with let's say about 900 hundred rows with data
(numbers) into a single string, where the rows data are semicolon delimited.
How can I manage this?

Example:
column1
row1 123
row2 456
row3 876
row4 345

into a single string (semicolon delimited): 123;456;876;345

thanks for any help in advance!

//Richard
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 176
Default Convert column data to semicolon delimited text string

You can use the following UDF. Then within your sheet enter the formula:
=DelimCat(A1:A10,";")

Function DelimCat(rng As Range, delim As String)
For Each rn In rng
temp = temp & rn & delim
Next
DelimCat = Left(temp, Len(temp) - 1)
End Function


--
Regards,
Dave


"Richard RE" wrote:

Hi,

I want to convert a column with let's say about 900 hundred rows with data
(numbers) into a single string, where the rows data are semicolon delimited.
How can I manage this?

Example:
column1
row1 123
row2 456
row3 876
row4 345

into a single string (semicolon delimited): 123;456;876;345

thanks for any help in advance!

//Richard

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 do I convert text string into a cell reference Dave Davis Excel Discussion (Misc queries) 4 May 18th 23 11:48 AM
Macro to find text string in a column and paste data in another nicolascap Excel Discussion (Misc queries) 8 March 14th 06 03:13 PM
how do Import data tab delimited text? Rob Excel Worksheet Functions 0 February 2nd 06 07:18 PM
convert text to number for a range of data in a column Tom Excel Discussion (Misc queries) 9 October 31st 05 11:28 PM
How do I strip out some parts of a column of text data? footballcmr2 Excel Discussion (Misc queries) 3 July 1st 05 07:20 PM


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