+ Reply to Thread
Results 1 to 4 of 4

Compare columns and delete range if match not found

  1. #1
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Compare columns and delete range if match not found

    Good afternoon all

    I am looking for a macro on how to delete a range (not the row) when there is no match found when 2 columns are compared

    In the attached... column Q is compared to column A,,, if a match is not found in A then the information in L to V would be deleted,, in this example L3-V3, L4-V4, L6-V6 and L28-V28 would be deleted

    Any help would be very much appreciated

    Many thanks

    Jim
    Attached Files Attached Files
    Last edited by JamesT1; 10-02-2023 at 05:33 AM. Reason: spelling

  2. #2
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: Compare columns and delete range if match not found

    try this:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Re: Compare columns and delete range if match not found

    SjonR

    Applogies for the late reply,, this works a treat,,

    many thanks for your help, appreciated

    Jim

  4. #4
    Forum Contributor
    Join Date
    05-12-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    266

    Re: Compare columns and delete range if match not found

    Happy to read it is working out for you!

    Greetings,

    Sjon

+ 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. Compare Columns and Copy if match found
    By betsyroal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2014, 07:58 AM
  2. Compare 2 columns and remove duplicates in both columns when found
    By 1dtms in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-11-2013, 02:19 AM
  3. [SOLVED] Compare two columns and copy and paste data from a third column when a match is found
    By GatorsBucs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2013, 06:54 PM
  4. [SOLVED] Compare two columns with data, if match or not found then change the colour of cells
    By Sachy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-15-2013, 03:58 AM
  5. [SOLVED] VBA Code - Compare Adjacent Cells In two columns and clear contents when a match is found
    By Langer101 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-03-2013, 06:22 AM
  6. Compare 2 columns then copy and paste the adjucent cell value if match is found
    By smartisenthil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2012, 12:11 PM
  7. Compare two sheets and delete row if match found
    By Steinwall in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2011, 03:25 PM
  8. Replies: 20
    Last Post: 01-02-2011, 10:00 PM

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