+ Reply to Thread
Results 1 to 5 of 5

data from rows and column to one single line

  1. #1
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    data from rows and column to one single line

    I have to worksheets: Sheet1, Sheet2
    In sheet 1, I have some data like this (in first col is 1, second col is a, third col is c etc. ) :

    1 a b c d
    2 e f g h
    .
    .
    .
    .

    I need in sheet 2 in range A1(only in this range one big text), something like this:

    a,c,e,g ........ ( row1-col2,row1-col4,row1-col2,row1-col4 ......) ( separated by ",")

    The number of rows from sheet 1 is variable.
    The dataf a,b,c,d,e,f,g,h ... is some random text.

    How can I do this automatically ? Please help.
    Last edited by iscar_marius; 11-12-2009 at 01:45 PM.

  2. #2
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: data from rows and column to one single line

    Any ideaa?

  3. #3
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: data from rows and column to one single line

    Please open attached file.
    I added some code:
    Please Login or Register  to view this content.
    This code will add in column Q the values that I need.

    Now I need to create an string that will concatenate all the values from column Q and add this string in a cell(1,1) from sheet 2. Please help me to do this.
    Thank you.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: data from rows and column to one single line

    Try this:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: data from rows and column to one single line

    Exactly what I need. Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1