Solved

to export data from excel to notepad as semicolon and side to side

Posted on 2013-10-25
4
346 Views
Last Modified: 2013-10-31
I have one excel file and it consists of the cell of 468 and I need them in word or notepad as semicolon between each other
for example

in Excel

1.Test1
2.Test2
3.Test3
--
--
--
468.test 468

and I would like them within notepad or word as semicolon between each other as sequentially and side to side

Test1;Test2;Test3;Test4 ............ ;Test468

how can I do this? thanks
0
Comment
Question by:TRocex
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
als315 earned 300 total points
ID: 39599892
You can use this function:
Public Function Concat(R As Range) As String
Dim c
Concat = ""
For Each c In R
        Concat = Concat & c.Value & ";"
Next
Concat = Left(Concat, Len(Concat) - 1)
End Function

Open in new window

Look at sample
Concat.xls
0
 

Author Comment

by:TRocex
ID: 39599998
thanks so how I should run your function or where should I write this function in excel?
0
 
LVL 40

Expert Comment

by:als315
ID: 39600102
Look at sample. There is function and example. You can press Alt+F11 and in Module1 you will see Function
0
 
LVL 32

Expert Comment

by:Paul Sauvé
ID: 39600544
Another approach is to copy the Excel column as a table to Word and use the Table to Text function with a semicolon as a delimiter!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question