+ Reply to Thread
Results 1 to 2 of 2

Compare cells and remove row

  1. #1
    Registered User
    Join Date
    12-13-2014
    Location
    Boston, MA
    MS-Off Ver
    MS Office 2013
    Posts
    53

    Compare cells and remove row

    Hey guys,

    I have a fairly basic macro that I need help solving. My goal with this macro is to run a loop that compares two columns of data removing any names that are unique from the first (shorter) column. Essentially this will be scrubbing a short list of names against a full roster of people. I would like for the entire row to be deleted upon finding that it is unique as well. This is what I have so far but it's not working as intended. I've attached a summarized version of what is needed as well. Don't pay any attention to the arr variable as this will change in the actual worksheet. Thanks for all help in advance!RC_Example.xlsx


    Please Login or Register  to view this content.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: Compare cells and remove row

    In your line of code for LR, you have neglected to indicate the column that you wish to use to determine the last row.

    Cells take a two part syntax Cells(Row,Column)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Code to remove compare and remove duplicate value between 2 columns
    By winmaxservices1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2015, 02:30 PM
  2. Compare data and remove the latest
    By sanyaa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-03-2014, 06:13 AM
  3. [SOLVED] Compare and Remove
    By Trevasaurus in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-05-2012, 05:01 PM
  4. How to Compare Values and Remove a column
    By nanao56 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2009, 07:29 PM
  5. [SOLVED] compare two columns and remove duplicates
    By Moni39 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-05-2005, 02:06 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