+ Reply to Thread
Results 1 to 7 of 7

Join text of variable lengths from multiple rows

  1. #1
    Registered User
    Join Date
    06-03-2013
    Location
    Riyadh
    MS-Off Ver
    Office 365 Subscription
    Posts
    47

    Join text of variable lengths from multiple rows

    Hi

    I am converting a multi-language document from Image to excel. The data is in tabular format in the original image file. When it is converted to excel message is breakdown into multiple rows. Capture2.PNG.


    I want complete message to be formatted in the original format.


    Capture.PNG

    I know i can use Concatenate and Textjoin function but since every message is f variable length i have to do this process hundreds of time for each individual record. Is there a quick way to format data. I have attached pics.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Join text of variable lengths from multiple rows

    You can try PowerQuery (Get&Transform). You mentioned about TEXTJOIN so it means you've Excel 365 (probably)

    example:

    Date & Time Body 1 Column1 Column1 Column2 Column3
    23/11/2016 This is how the One-line message 23/11/2016 22:38:00 PM This is how the message is. Some message is just one line One-line message
    22:38:00 PM message is. Some
    message is just one
    line

  3. #3
    Registered User
    Join Date
    06-03-2013
    Location
    Riyadh
    MS-Off Ver
    Office 365 Subscription
    Posts
    47

    Re: Join text of variable lengths from multiple rows

    Thanks. I think it might work. Can you walk me trough it a little bit.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Join text of variable lengths from multiple rows

    Sure but tell me you've PowerQuery installed? If not it doesn't make any sense or update your profile about Excel version

    edit:
    I'd like to see more representative example excel file (more data) and expected result
    or
    image of original (desensitized) data with more than one row
    Last edited by sandy666; 07-26-2018 at 06:18 AM.

  5. #5
    Registered User
    Join Date
    06-03-2013
    Location
    Riyadh
    MS-Off Ver
    Office 365 Subscription
    Posts
    47

    Re: Join text of variable lengths from multiple rows

    Thanks for your reply. Yes i have power query installed. I have updated my profile flare to reflect that as well. I have sent you a PM with raw data and desired outcome example.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Join text of variable lengths from multiple rows

    sorry mate but I don't see any PM

    edit: got it
    Last edited by sandy666; 07-26-2018 at 07:00 AM.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Join text of variable lengths from multiple rows

    Quote Originally Posted by excobra View Post
    ...I have sent you a PM with raw data and desired outcome example.
    Please do not use PM's to discuss threads or show info. Forums like these are here for all to help and get help - that can hardly happen is info is shared in private.

    Share your data here please, unless it contains sensitive info, in which case we dont want it anyway, private or shared. Rather, mock up some dummy info that represents a sample of your data.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with Mid-Function and variable lengths.
    By spencerwegener in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-31-2018, 03:54 PM
  2. [SOLVED] Extracting Text From Cells of Variable Lengths
    By stinkstik in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-25-2013, 02:46 PM
  3. [SOLVED] Excel 2010 - Macro to join 5 rows with multiple cells to one row
    By fiesty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-12-2013, 09:49 PM
  4. Multiple named ranges with variable lengths set by user via single cell value
    By devcow in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-17-2012, 01:12 AM
  5. [SOLVED] Parsing data of variable lengths
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-02-2011, 04:54 PM
  6. Replies: 5
    Last Post: 03-15-2011, 07:33 PM
  7. join text from multiple cells to one cell
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2009, 06:28 PM

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