+ Reply to Thread
Results 1 to 7 of 7

Delete row if some columns equal others. HELP

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Delete row if some columns equal others. HELP

    How should I make a code that deletes rows if:
    Some value in column B has its symmetric in column B as well AND Column E coincides for both. If TRUE, I want to delete the row with the positive value.

    Hope someone can give me a help!

    Thanks in advance

    I did something like the following but I don't know how to make it ANY row instead of +1 neither how to make it delete the positive B column value row.

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 07-23-2013 at 11:13 PM. Reason: Added CODE tags, as per Forum Rules. Take a moment to read the Forum Rules in the menu bar above. Thanks.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Delete row if some columns equal others. HELP

    your code does not seem to get along with the description, attach please a sample file with data and desired result
    Last edited by patel45; 07-23-2013 at 06:58 AM.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    07-23-2013
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Delete row if some columns equal others. HELP

    Thanks for the reply. I know the code doesn't do what I want. I just tried something out and was trying to adapt it

    I found another way to do it. I'd like to delete the rows where dateF is the same but dateC is greater (plus the value should be positive)
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Delete row if some columns equal others. HELP


  5. #5
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Delete row if some columns equal others. HELP

    Quote Originally Posted by lmvmbc View Post
    I found another way to do it. I'd like to delete the rows where dateF is the same but dateC is greater (plus the value should be positive)
    wher'is desired result ?

  6. #6
    Registered User
    Join Date
    07-23-2013
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Delete row if some columns equal others. HELP

    The desired result is in the table on the right
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Delete row if some columns equal others. HELP

    Quote Originally Posted by lmvmbc View Post
    Some value in column B has its symmetric in column B as well AND Column E coincides for both. If TRUE, I want to delete the row with the positive value.
    maybe this description is wrong ?

+ 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. Delete row if some columns equal others
    By lmvmbc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2013, 11:14 PM
  2. Help!! How to delete rows based on value on 2 columns(same equal=0)
    By giallorossi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2013, 03:19 AM
  3. Replies: 2
    Last Post: 01-14-2009, 04:01 AM
  4. delete cells until value in equal
    By stevekirk in forum Excel General
    Replies: 8
    Last Post: 12-17-2006, 03:37 PM
  5. Comparing data in columns and delete if not equal
    By Robert in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-04-2005, 04:06 PM

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