+ Reply to Thread
Results 1 to 5 of 5

Remove specific lines within cell

  1. #1
    Registered User
    Join Date
    08-17-2009
    Location
    Ljubljana, Slovenia
    MS-Off Ver
    Excel 2007
    Posts
    14

    Remove specific lines within cell

    Hi,

    how can I remove lines within each cell (multiple lines in one cell with line breaks) that are not starting with a numeric character?
    223213 - this line needs to stay
    chair - this line needs to be removed
    9 - this line needs to stay
    needs to be removed

    Thanks and best,
    Jack

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Remove specific lines within cell

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-17-2009
    Location
    Ljubljana, Slovenia
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Remove specific lines within cell

    I'm very sorry for cross-posting. This was resolved on the link below and both solution worked perfectly:
    https://www.mrexcel.com/forum/excel-...ml#post5320229
    Thanks and best,
    Jack

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Remove specific lines within cell

    Quote Originally Posted by ymcata View Post
    This was resolved on the link below and both solution worked perfectly
    I don't think so.

    Both of them have extra LineFeed at the beginning or end in some occasion like

    chair - this line needs to be removed
    111111 - this line needs to stay
    needs to be removed

    Fist one will have extra linefeed at the beginning and the 2nd one always have line feed at the end.

    Should be like this
    Use in cell like
    =GetNumLineRegX(A1)
    or
    =GetNumLineFilter(A1)
    Please Login or Register  to view this content.

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Remove specific lines within cell

    Jack, You have only posted one site. There are at least two sites that you have crossposted to.

+ 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. [SOLVED] Convert text to data and remove specific lines
    By SubwAy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-13-2017, 07:20 AM
  2. [SOLVED] Remove lines based on cell value (remove lines in range, not entire row)
    By Tapyr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-27-2015, 07:31 AM
  3. [SOLVED] Macro neede to open text files from folder and remove all the lines except specific lines
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-07-2014, 02:44 AM
  4. [SOLVED] remove lines if a cell is blank
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-01-2013, 10:08 PM
  5. Replies: 1
    Last Post: 01-29-2012, 10:51 AM
  6. .CSV, remove multiple lines in one cell
    By christianlie in forum Excel General
    Replies: 1
    Last Post: 10-21-2011, 09:44 PM
  7. Formulas to remove specific lines of text from a spreadsheet
    By visionwindowfilms in forum Excel General
    Replies: 11
    Last Post: 02-28-2010, 06:04 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