A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Convert column data to semicolon delimited text string



 
 
Thread Tools Display Modes
  #1  
Old September 5th, 2006, 02:18 PM posted to microsoft.public.excel.worksheet.functions
Richard RE
external usenet poster
 
Posts: 1
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  
Old September 5th, 2006, 03:03 PM posted to microsoft.public.excel.worksheet.functions
David Billigmeier
external usenet poster
 
Posts: 182
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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:26 PM.


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