+ Reply to Thread
Results 1 to 7 of 7

Convert Multiple Rows into One Row

  1. #1
    Who I Am
    Guest

    Convert Multiple Rows into One Row

    One record spreads over multiple rows. The purpose is to make them one
    row and save as text file (in order to import into another program).
    Because of column number limitation, I use copy-paste special -
    transpose.

    Now each column, not multiple rows, hold a record (for one customer).

    What should I do to get the records saved as CSV file?

    Does MS access help here? Is there a better approach?

    Thank you, my boss is demanding an answer.


  2. #2
    Registered User
    Join Date
    08-04-2006
    Posts
    36
    concatenate would work in this instance


    ie

    =concatenate(a1,b1,c1 etc etc)


    that way all would be in one cell, you can always add a commar too if need be.

    Then copy and paste the values and then save as a CSV file..

  3. #3
    Who I Am
    Guest

    Re: Convert Multiple Rows into One Row

    Thanks Ben for your prompt response. This is a very interesting
    approach.

    However, concatenate only handles upto 30 text items. In my case, the
    maximum cells could be 490.

    Is there another approach?

    Does it work if I use several concatenate"

    What is the maxmum number of character a cell can hold?

    Thank you all.




    mr_ben wrote:
    > concatenate would work in this instance
    >
    >
    > ie
    >
    > =concatenate(a1,b1,c1 etc etc)
    >
    >
    > that way all would be in one cell, you can always add a commar too if
    > need be.
    >
    > Then copy and paste the values and then save as a CSV file..
    >
    >
    > --
    > mr_ben
    > ------------------------------------------------------------------------
    > mr_ben's Profile: http://www.excelforum.com/member.php...o&userid=37106
    > View this thread: http://www.excelforum.com/showthread...hreadid=568446



  4. #4
    Registered User
    Join Date
    08-04-2006
    Posts
    36
    you can daisy chain formulas however you can only nest 7 formulas in one big formula


    As for cell length there is something about more than 1024 characters (IIRC) being a problem.

    unfortunately my VBA skills are sadly lacking so there could be a better way...

  5. #5
    Who I Am
    Guest

    Re: Convert Multiple Rows into One Row

    Do you think if it will work:

    I use "=CONCATENATE" in one cell and allow it to hold 25 cells. In next
    cell, I put second "=CONCATENATE" to hold another 25 cells....

    So with 20 "=CONCATENATE"s, I can cover all my data, say, from A1:T1.

    Then the question will be

    Can I save it as CVS file where the entire first row is one record?




    mr_ben wrote:
    > you can daisy chain formulas however you can only nest 7 formulas in one
    > big formula
    >
    >
    > As for cell length there is something about more than 1024 characters
    > (IIRC) being a problem.
    >
    > unfortunately my VBA skills are sadly lacking so there could be a
    > better way...
    >
    >
    > --
    > mr_ben
    > ------------------------------------------------------------------------
    > mr_ben's Profile: http://www.excelforum.com/member.php...o&userid=37106
    > View this thread: http://www.excelforum.com/showthread...hreadid=568446



  6. #6
    Registered User
    Join Date
    08-04-2006
    Posts
    36
    Quote Originally Posted by Who I Am
    Do you think if it will work:

    I use "=CONCATENATE" in one cell and allow it to hold 25 cells. In next
    cell, I put second "=CONCATENATE" to hold another 25 cells....

    So with 20 "=CONCATENATE"s, I can cover all my data, say, from A1:T1.

    Then the question will be

    Can I save it as CVS file where the entire first row is one record?
    Yes and..

    I would image so if you have commas in the text then for every comma the text will be put in another cell.

  7. #7
    Tom Ogilvy
    Guest

    Re: Convert Multiple Rows into One Row

    > I would image so if you have commas in the text then for every comma
    > the text will be put in another cell.


    that would be incorrect based on what it sounds like is being proposed. .

    if a1 and b1 contain

    a1: a,b,c
    b1: d,e,f

    and you did Files=>Save As and selected CSV, it would be saved as

    "a,b,c","d,e,f"

    If you brought it back into excel, it would be placed in A1 and B1.


    ---------------------------------
    if you want to change rows to columns, select the single column multiple row
    area (assume starting in A1), do edit=>copy

    select b1 and do Edit=>Paste Special and select transpose.

    Now delete column 1

    then File =>Save As, and select CSV for the type.

    --
    Regards,
    Tom Ogilvy



    "mr_ben" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Who I Am Wrote:
    >> Do you think if it will work:
    >>
    >> I use "=CONCATENATE" in one cell and allow it to hold 25 cells. In
    >> next
    >> cell, I put second "=CONCATENATE" to hold another 25 cells....
    >>
    >> So with 20 "=CONCATENATE"s, I can cover all my data, say, from A1:T1.
    >>
    >> Then the question will be
    >>
    >> Can I save it as CVS file where the entire first row is one record?
    >>

    >
    > Yes and..
    >
    > I would image so if you have commas in the text then for every comma
    > the text will be put in another cell.
    >
    >
    > --
    > mr_ben
    > ------------------------------------------------------------------------
    > mr_ben's Profile:
    > http://www.excelforum.com/member.php...o&userid=37106
    > View this thread: http://www.excelforum.com/showthread...hreadid=568446
    >




+ 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