+ Reply to Thread
Results 1 to 7 of 7

Conditionally compare the data & delete entire row

  1. #1
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Conditionally compare the data & delete entire row

    Hi, I am looking for a macro that will do the things as mentioned below

    If column J of 1.xls has buy & column H of 1.xls is not greater than column D of 1.xls then match column I data of 1.xls with column B of alert.xls and if it matches then delete that entire row of alert.xls
    If column J of 1.xls has a blank cell then match column I data of 1.xls with column B of alert.xls and if it matches then delete that entire row of alert.xls
    If column J of 1.xls has short & column H of 1.xls is Greater than than column D of 1.xls then match column I data of 1.xls with column B of alert.xls and if it matches then delete that entire row of alert.xls



    These are the three condition that macro will follow and based on that it will work
    all files are located in different path, macro will be placed in seperate file macro.xlsm
    sheet name can be anything
    Attached Files Attached Files
    Last edited by dumdumbum; 06-20-2020 at 07:25 AM.

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,310

    Re: Conditionally compare the data & delete entire row

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: Conditionally compare the data & delete entire row

    Dangelor Sir i am really Sorry, I made a mistake
    It was not alert.csv,It was Alert.xls
    I corrected the question Plz relook Sir
    & Thnx for taking interest in solving this Problem

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,310

    Re: Conditionally compare the data & delete entire row

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: Conditionally compare the data & delete entire row

    Please Login or Register  to view this content.
    I edited the code Dangelor Sir as per my needs
    Plz have a relook and let me know if any changes is required
    I am getting the perfect output
    Thnx Alot Dangelor Sir for solving this problem
    Any suggestion regarding the change in the code is welcome

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,310

    Re: Conditionally compare the data & delete entire row

    If it works for you, it's good! Glad I could help!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Forum Contributor
    Join Date
    05-10-2020
    Location
    india
    MS-Off Ver
    2013
    Posts
    221

    Re: Conditionally compare the data & delete entire row

    Sure Done Sir

+ 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] Conditionally compare the data & delete entire row
    By dumdumbum in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-29-2020, 05:41 AM
  2. Replies: 1
    Last Post: 01-04-2017, 06:00 PM
  3. Replies: 1
    Last Post: 01-04-2017, 05:59 PM
  4. Default Compare 2 sheets and delete entire row if don't match
    By lapot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2016, 02:27 PM
  5. [SOLVED] Compare two columns to check if difference is less then 100 then delete entire row..
    By tissumon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2014, 09:42 PM
  6. Compare two cells, if blank delete entire row
    By taichi56 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-03-2013, 02:05 PM
  7. Replies: 6
    Last Post: 05-24-2012, 09:14 AM

Tags for this Thread

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