+ Reply to Thread
Results 1 to 8 of 8

delete rows where the numbers dont match

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    leicestershire
    MS-Off Ver
    Excel 2003
    Posts
    40

    delete rows where the numbers dont match

    hi ,

    column "b" in the attached file has numbers that match some numbers in column "c"
    I need to delete all the rows that done match the numbers in column "c" that are used in column "b"

    for example no " 53" is in column "c" but not column "b" so they need deleting

    thanks steve
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: delete rows where the numbers dont match

    does this code mark in cyan the rows that you want deleted?

    if so then subsequent deletion of these is easy
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-20-2014
    Location
    leicestershire
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: delete rows where the numbers dont match

    hi,

    yes this has highlighted the rows for deletion
    thanks
    steve

  4. #4
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: delete rows where the numbers dont match

    does this one do the correct deletion for you?
    I wasn't sure what you wanted done about the blank cells in the number columns
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-20-2014
    Location
    leicestershire
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: delete rows where the numbers dont match

    thank you all,
    that works great.
    could we please check the opposite as I have just found one that is wrong.

    so what is in column "b" that is not in column "c"" and highlight it

    thanks
    steve

  6. #6
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: delete rows where the numbers dont match

    yellow is in ColB not in ColC
    cyan is in ColC not in ColB
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-20-2014
    Location
    leicestershire
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: delete rows where the numbers dont match

    thank you that works great
    steve

  8. #8
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: delete rows where the numbers dont match

    You're welcome.

+ 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] Remove Duplicates but Dont delete the rows
    By sagar007 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2013, 07:35 AM
  2. macro to delete rows that dont have a certain string
    By tactical in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2012, 12:05 PM
  3. How to automatically delete rows which dont match criteria
    By Endorphin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2006, 10:51 AM
  4. Delete Rows that dont match criteria in VB
    By mad_lock in forum Excel General
    Replies: 0
    Last Post: 01-26-2005, 08:12 AM
  5. Delete Rows that dont match criteria in VB
    By mad_lock in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2005, 06:41 AM

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