LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How to combine column data into one row

Thanks a lot Charlie, your a star * :)

"Charlie" wrote:

Put the code in a standard module, such as Module1. Put it in a subroutine
such as:

Sub Test()

' Put the code here

End Sub

As always: save a copy of your workbook first! Then put the cursor anywhere
inside Sub Test and press F5 to run it.

"Haroon" wrote:

thanks charlie

when i add the code it dont do anything
where and how to i excute the code?

cheers

"Charlie" wrote:

The request sounded perfectly clear to me.

Dim Cell As Range

For Each Cell In Range("A2:A100")
Range("A1") = Range("A1") & "," & Cell
Next Cell


"Joel" wrote:

Why do you want commas? Do you want the cells in one column or 100 columns?
Comma seperated data (CSV) is usually a text file and not a xls file. I
think you may be a little confused.

"Haroon" wrote:

Hi

I have data in 100 cells, A1:A100
I want to find out how can i combine them in one row seperated by a comma,
e.g. test1, test2, test3, etc in a row
at the moment they are in a column e.g.
test1
test2
test3
etc....


thanks in advance.

 
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 to combine number data from one column into another column newbie Excel Discussion (Misc queries) 1 September 2nd 08 02:18 AM
Combine column data into one PAG Excel Programming 4 February 17th 08 12:15 AM
combine column data Mitchell_Collen via OfficeKB.com Excel Discussion (Misc queries) 3 February 5th 08 08:03 PM
how to combine data from Column A & B CORaccounting Excel Discussion (Misc queries) 3 December 1st 07 03:59 PM
How to combine data from two columns into one column? dcnguyen Excel Worksheet Functions 3 January 8th 06 11:40 PM


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