Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jan 2007
    Location
    Gray, Louisiana, USA
    Posts
    289
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When typing in a cell you can use <ALT><ENTER> to drop to the next line. I believe this inserts a carriage return.

    Is there a formula to get the data after the last carriage return?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Alt+Enter actually inserts a line feed (ASCII character 10).

    Let's say you have a multi-line text in cell A1. The following array formula (confirmed with Ctrl+Shift+Enter) will return the text of the last line:

    =RIGHT(A1,LEN(A1)-MAX(ROW(INDIRECT("1:"&LEN(A1)))*(MID(A1,ROW(INDIRE CT("1:"&LEN(A1))),1)=CHAR(10))))

  3. #3
    2 Star Lounger
    Join Date
    Jan 2007
    Location
    Gray, Louisiana, USA
    Posts
    289
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That got it. Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •