+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 22 of 22

Remove all numbers >=3 but leave T and L .

  1. #16
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    2013
    Posts
    690

    Re: Remove all numbers >=3 but leave T and L .

    Try this:
    I assumed the values of column G are only numbers or "T" or "L".
    The code will sort the data by col G in descending order then remove all rows below the last "L".

    Please Login or Register  to view this content.
    Edit:
    If you only want to clear the content of col G, use this one:


    Please Login or Register  to view this content.
    Last edited by Akuini; 11-10-2019 at 07:11 PM.

  2. #17
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    3,820

    Re: Remove all numbers >=3 but leave T and L .

    Hi,

    Like Rick yet wrote, I confirm for SpecialCells, maybe the most vicious VBA method as not only 'cause of its results limit
    but as it no raises any error if there are more results than its limit, can be messy !

  3. #18
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013
    Posts
    15,016

    Re: Remove all numbers >=3 but leave T and L .

    Quote Originally Posted by I need excel help View Post
    im testing on a 490,000 row sheet .
    See if this works faster...
    Please Login or Register  to view this content.
    Last edited by jindon; 11-11-2019 at 02:09 AM.

  4. #19
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    1,280

    Re: Remove all numbers >=3 but leave T and L .

    ... and ... : ) ... :
    Please Login or Register  to view this content.

  5. #20
    Forum Expert
    Join Date
    07-20-2011
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    4,758

    Re: Remove all numbers >=3 but leave T and L .

    Try this code.It is fastest.
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 11-11-2019 at 02:25 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #21
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    XLS 2016
    Posts
    3,710

    Re: Remove all numbers >=3 but leave T and L .

    Thx again Rick:
    for the information and to take care until the last detail
    - Battle without fear gives no glory - Just try

  7. #22
    Valued Forum Contributor
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    565

    Re: Remove all numbers >=3 but leave T and L .

    Please Login or Register  to view this content.
    WBD
    Excel 2016 on Windows 10, looking for rep!

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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