+ Reply to Thread
Results 1 to 4 of 4

Extracting a certain number of lines of text

  1. #1
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Extracting a certain number of lines of text

    Hi

    I have one cell which contains many lines of text (not formulas) describing something. I want to have another cell that gives a shorter description and extract only say the first five lines of this text. Is it possible?

    thanks

  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: Extracting a certain number of lines of text

    What separates the lines of text? Is it a full stop / a new line / something else?
    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 Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Re: Extracting a certain number of lines of text

    Separated by full stop.

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

    Re: Extracting a certain number of lines of text

    Use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Change cell reference A1 as required. Change the number 5 to change the number of lines returned.

+ 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. Extracting numbers and text from inconsistent text/number formatted string
    By Brandivil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2013, 01:46 PM
  2. [SOLVED] extracting number from cell contains both text and number alternatively
    By green369 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 10:17 AM
  3. Extracting number from text
    By Bob@Sun in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2010, 11:40 AM
  4. Replies: 3
    Last Post: 02-27-2010, 08:48 AM
  5. Extracting a specific number of lines from a file
    By paddyberk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2010, 12:08 PM
  6. Replies: 6
    Last Post: 07-29-2008, 03:23 PM
  7. [SOLVED] Extracting a 'number' from text
    By Anthony Slater in forum Excel General
    Replies: 5
    Last Post: 04-05-2005, 09:06 AM
  8. Extracting the number from a text
    By Venkatesh V in forum Excel General
    Replies: 1
    Last Post: 02-23-2005, 01:06 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