+ Reply to Thread
Results 1 to 6 of 6

Can we removing particular rows of data thru formulas?

  1. #1
    Registered User
    Join Date
    08-02-2007
    Posts
    25

    Can we removing particular rows of data thru formulas?

    Hello All,

    We have an Excel document that contains rows of data we would like to remove and would like to find out if we can use a formula to remove the unwanted rows of data. All of these rows contain a keyword in a particular cell in column A. For example if cell A1, A5, A10, A20, A98 contains the word “cat” we would like to remove the entire row. We have approx 1000+ rows that would need to be removed and they are disbursed throughout the Excel document. Do you guys know of a formula that can do this? I am sure there is a way but I don’t know how.

    Thanks again for your help,

    gsmonk
    Last edited by gsmonk; 09-14-2007 at 02:38 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See link

    http://www.rondebruin.nl/delete.htm#Find

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    You could use AutoFilter which will hide all rows, or you could use Advanced Filter and copy everything you want elsewhere.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Can this be done with a formula?

    If you mean that you want to delete the entire row for any amount Less Than or Equal to 9.99.....You could use an AutoFilter:

    With Col_A containing amounts and
    A1: Amount

    Select from A1 through the bottom of your list

    Then....from the Excel Main Menu
    <data><filter><autofilter>
    Click the DropDown on A1
    Select: Custom
    Amount: Is Less than or Equal To: 9.99
    Click [OK]
    (Only those cells will be displayed..the others will be hidden)

    Select from the first displayed row below A1 through the last displayed row.
    Press the [delete] key....When AutoFilter is engaged....You can only delete entire rows.

    The turn off the AutoFilter and the remaining rows will still be there.

    Is that something you can work with? or do you need something else?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    gsmonk,

    Please don't post duplicate threads as they may be deleted next time

    VBA Noob

  6. #6
    Registered User
    Join Date
    08-02-2007
    Posts
    25
    Thanks you very much for the help. That did the trick.

    Thanks again,

+ Reply to Thread

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