+ Reply to Thread
Results 1 to 3 of 3

Deleting Duplicates Based on Multiple Criteria from Multiple Columns

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Salina, Kansas
    MS-Off Ver
    Excel 2003
    Posts
    6

    Deleting Duplicates Based on Multiple Criteria from Multiple Columns


    I am needing help trying to figure out a formula to delete extra information.

    If Column A has a cart number followed by an "S" and Column C says "YARD" then Column G should equal "GC". If Column G does NOT equal GC then delete the row.

    Also, if Column A has a cart number follows by an "S" and Column C says "SALE" then Column G should equal "TR". If Column G does not equal TR the delete the row.

    Any suggestions on formulas and how would I implement this? Is it a macro or a conditional format?

    Thank you in advance.

  2. #2
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,160

    Re: Deleting Duplicates Based on Multiple Criteria from Multiple Columns

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button
    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
    10-09-2012
    Location
    Salina, Kansas
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Deleting Duplicates Based on Multiple Criteria from Multiple Columns

    Thank you!

+ 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