+ Reply to Thread
Results 1 to 3 of 3

Comparing data in two different columns and deleting entire row

  1. #1
    Registered User
    Join Date
    04-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Comparing data in two different columns and deleting entire row

    I am trying to write an IF statement that has a certain criteria in Column C AND the criteria of the first two characters in each cell in column D are satisfied, and then to delete the entire row if it is true.

    What I have so far is
    Please Login or Register  to view this content.
    But I am getting an Invalid or unqualified reference error.

    Thanks in advance for your help

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Comparing data in two different columns and deleting entire row

    Try this code
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    04-28-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Comparing data in two different columns and deleting entire row

    Thanks arlu1201. Worked perfectly. I guess I didn't know how to preselect the rows to make the formula work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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