+ Reply to Thread
Results 1 to 4 of 4

How to collect data from many cells in a row into one cell?

  1. #1
    Registered User
    Join Date
    07-03-2010
    Location
    Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    How to collect data from many cells in a row into one cell?

    How to collect data from many cells in a row into one cell?

    I provided and example, how I want it be:
    A B C D E F G H I J K ...
    1 Diameter List of elements ...
    2 ∅6 9 1 3 5 9 1 3 5 ...
    3 ∅8 5 4 7 9 5 4 7 9 ...
    ... ... ... ... ... ... ... ... ... ... ... ... ...

    I have very long rows with many columns starting from column C, some cells are empty. In cell B2 I want to collect all data from cells of the row with single space between them. The same I want to do in cell B3 and downwards ...

    I know in Excell 2010, the cell can contain
    32767 characters maximum.
    Maybe it's better to export that list of elements to text file or use aditional reserved cells C2; D2; E2 - if the text doesn't fit to B2.

    Appreciate any help
    Last edited by rcurious; 01-20-2012 at 07:39 AM.

  2. #2
    Valued Forum Contributor MaczaQ's Avatar
    Join Date
    06-03-2011
    Location
    Poland
    MS-Off Ver
    Excel 2003 / XP
    Posts
    510

    Re: How to collect data from many cells in a row into one cell?

    Hi,

    Try to work with this code
    Please Login or Register  to view this content.
    I hope it helps.
    Best Regards
    MaczaQ
    ---------------------------------------------------------------------------------------------------------------------------
    If you are satisfied with the solution(s) provided, please mark your thread as Solved
    If you are pleased with my answer consider to rate it. To thank someone who has helped you, click on the star icon below their name.
    - This way you will add him some reputation points ... thanks in advance.

  3. #3
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: How to collect data from many cells in a row into one cell?

    You can use the concatenate function

    =CONCATENATE(C2,D2,E2,...)

    Or this works just as well

    =C2&D2&E2...

    If you want spaces between elements, it would be:
    =CONCATENATE(C2," ",D2," ",E2,...)
    Or
    =C2&" "&D2&" "&E2...

  4. #4
    Registered User
    Join Date
    07-03-2010
    Location
    Lithuania
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: How to collect data from many cells in a row into one cell?

    Thanks, maczaq. It works very well! Also thanks, Whizbang - these commands would be also suitable.
    Last edited by rcurious; 01-18-2012 at 10:49 PM.

+ 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