+ Reply to Thread
Results 1 to 11 of 11

Yet another transformation of multiple line cells ...

  1. #1
    Registered User
    Join Date
    01-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    6

    Angry Yet another transformation of multiple line cells ...

    Hello,
    I have an ugly XLS file with multiple line cell content that is ugly & huge, and where I need to do some HLOOKUP adn VLOOKUP on the data stored in column D
    But to do that I first need to remove those stupid multiple line cells in order to do that.

    The file looks like the following :

    A B C D
    1 XXX Name 1 Ref 1 Ref a
    Ref b
    Ref c
    2 YYY Name 2 Ref 2 Ref d
    Ref e
    Ref f
    Ref g

    I'd like to remove the multiple line cells in column D by adding the other lines next to column D (that is filling columns E and following) ..

    A B C D E F G
    1 XXX Name 1 Ref 1 Ref a Ref b Ref c
    2 YYY Name 2 Ref 2 Ref d Ref e Ref f Ref g

    I found a very nice article on this forum that makes the split in lines ... but not in column.
    See here : http://www.excelforum.com/excel-form...rate-rows.html

    I'm investigating with my limited VBA & XL skills ... so support welcome !

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Yet another transformation of multiple line cells ...

    Hi and welcome to the forum!

    Are you able to upload a sample workbook which illustrates your query? Obviously replace any confidential/sensitive information with dummy data if necessary.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    01-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Yet another transformation of multiple line cells ...

    Hello,

    For sure, I should have indeed done that instead of trying to make a symbolic xls file in the thread text
    Here it is !

    Extract XLS file.xlsx

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Yet another transformation of multiple line cells ...

    Thanks. Could I just ask you to re-attach a version of this workbook with your desired results included? That way I'm absolutely clear on what you want and in which cells it should go.

    Regards

  5. #5
    Registered User
    Join Date
    01-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Yet another transformation of multiple line cells ...


  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Yet another transformation of multiple line cells ...

    Based on your latest attachment, I suggest entering this array formula** in cell E3:

    =IFERROR(TRIM(MID(SUBSTITUTE($D3,CHAR(10),REPT(" ",189)),189*(COLUMNS($A:A)-1)+1,189)),"")

    Then drag this formula down and to the right until you start to get blanks for the results.

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

  7. #7
    Registered User
    Join Date
    01-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    6

    Thumbs up Re: Yet another transformation of multiple line cells ...

    Hello !

    Thanks a lot for your reply, I just tried your formula and it works great !
    I was not aware of the difference between formula and array formula ... so your instructions were very helpfull ...

    I had to replace the commas by semicolons ... but the result is just amazing !

    Thanks again !!!!

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Yet another transformation of multiple line cells ...

    You're welcome and thanks for the feedback!

    Bonne journée!

  9. #9
    Registered User
    Join Date
    01-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Yet another transformation of multiple line cells ...

    Merci ! Bonne journee egalement ... How do you know I'm french ?

  10. #10
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Yet another transformation of multiple line cells ...

    I don't! But your profile says France...alors la probabilité n'était pas mal!

  11. #11
    Registered User
    Join Date
    01-08-2014
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Yet another transformation of multiple line cells ...

    Indeed ! Betrayed by my profile's information
    Have a nice day in Yorkshire then ! :D

+ 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. Data transformation in Excel cells.
    By bartszu in forum Excel General
    Replies: 4
    Last Post: 08-09-2013, 09:31 PM
  2. export excel to text file; multiple line cells; no quotes
    By redbu11 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-11-2012, 01:57 AM
  3. Time transformation
    By lza in forum Excel General
    Replies: 3
    Last Post: 12-03-2009, 06:44 AM
  4. Joining multiple cells into one line.
    By DaithiW in forum Excel General
    Replies: 3
    Last Post: 03-26-2008, 03:34 PM
  5. Data Transformation
    By zaisaki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2005, 12:05 AM

Tags for this Thread

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