+ Reply to Thread
Results 1 to 3 of 3

Delete rows based on specific criteria

  1. #1
    Registered User
    Join Date
    05-30-2007
    Posts
    7

    Delete rows based on specific criteria

    Please help to code a macro that will delete rows based on the following :
    In the attachment,
    Column C : Delete rows where numbers in column C are in the rage of 2500-2799
    Column B: Delete rows where column B is 'N'
    Also, is there was y in which the excel sheets format can be normalized so that column C is always recognized as a number.

    Thanks a ton!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525
    Hi there,

    Not sure what you're after in the last part of your posting but based on the sample data you provided, the following code will delete the appropriate row(s)*:

    Please Login or Register  to view this content.
    HTH

    Robert

    * For large datasets an alternative method (such as filtering then deleting) is advisable

  3. #3
    Registered User
    Join Date
    05-30-2007
    Posts
    7
    thanks so much for the code..u saved me a ton of work

+ 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