• Extract Data From a Cell

    Author
    Topic
    #463334

    When typing in a cell you can use 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?

    Viewing 1 reply thread
    Author
    Replies
    • #1182477

      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(INDIRECT(“1:”&LEN(A1))),1)=CHAR(10))))

    • #1182485

      That got it. Thanks

    Viewing 1 reply thread
    Reply To: Extract Data From a Cell

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: