+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Conditional deleting

Hybrid View

  1. #1
    Registered User
    Join Date
    12-28-2009
    Location
    Spain
    MS-Off Ver
    Excel 2007
    Posts
    2

    Conditional deleting

    Hi

    I have two columns - "A" and "B"
    In "A" there is a list of about 2000 emails. In "B" there is a number - either "0" or "1" - that shows whether the EMail has been validated.

    Is there any way that I can block remove (other than doing them all individually !!!) all the EMail rows that have a "0" next to them in Column "B" ?

    Thanks

    Carl
    Last edited by CarlBe; 12-28-2009 at 11:22 AM. Reason: Typo error

  2. #2
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    375

    Re: Conditional deleting

    CarlBe

    Welcome to the forum. I'm sure one of the Gurus have a cleaner solution but this can easily be done with helper columns.

    Assuming you list of Emails starts in column "A" on sheet 1, place the formula
    =IF(Sheet1!B1=1,Sheet1!A1,"")
    in cel A1 on sheet 2 and copy down to atleast row 2000. Apply a filter to sheet 2 and have it not show the blanks.

    I've attached a sample.
    Attached Files Attached Files
    Click here to read the Forum Rules
    Whatever it is in life you decide to go after, go after with great ferocity.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional deleting

    If there are "titles" in row 1 on your original sheet, you can apply an AutoFilter to the original data.

    DATA > FILTER > AUTOFILTER

    Then use the drop down that appears in column B to filter any way you wish.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    12-28-2009
    Location
    Spain
    MS-Off Ver
    Excel 2007
    Posts
    2

    Thumbs up Re: Conditional deleting

    Hi

    Thatīs great - worked perfectly - many thanks

    Carl

  5. #5
    Registered User
    Join Date
    12-28-2009
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Conditional deleting

    If you wanted rid of them permanently, why not just sort the 0/1 column numerically then select and delete all the 0s in one go?

+ 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