+ Reply to Thread
Results 1 to 3 of 3

Returning consecutive lines in a cell, and doing this iteratively

  1. #1
    Registered User
    Join Date
    09-06-2016
    Location
    toronto
    MS-Off Ver
    professional
    Posts
    1

    Returning consecutive lines in a cell, and doing this iteratively

    For example,

    Line 1: 023 Description
    Line 2: sentence 1
    Line 3: sentence 2
    Line 4: definition

    Line 5: 0267 Description
    Line 6: sentence 3
    Line 7: sentence 4
    Line 8: definition 2

    Basically I want to output anything between the description and definition into an individual cell (i.e. sentence 1 & 2), then into the cell below it (sentence 3 & 4), and so on.

    The problem is there are over a 1000 lines like this, so I want to develop a code which does this automatically for me.

    Any ideas would be greatly appreciated.

    Cheers.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Returning consecutive lines in a cell, and doing this iteratively

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Returning consecutive lines in a cell, and doing this iteratively

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    To add a file to a post

+ 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. How to loop through and name each cell iteratively
    By martinez77 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2014, 05:50 PM
  2. Returning data from multiple web pages and pasting it in consecutive rows
    By PistachioPedro in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2013, 12:03 PM
  3. [SOLVED] Transpose iteratively???
    By hscmsf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-06-2013, 04:59 PM
  4. Replies: 0
    Last Post: 12-12-2012, 06:35 PM
  5. Replies: 17
    Last Post: 12-16-2011, 12:58 AM
  6. How to iteratively name columns
    By darsh89 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2011, 08:57 PM
  7. Returning Numeric Results across a Single Row in Consecutive Cells
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-15-2006, 08:55 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