+ Reply to Thread
Results 1 to 3 of 3

Remove duplicate

  1. #1
    Registered User
    Join Date
    08-16-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    28

    Remove duplicate

    dear Sir,

    i attached a file in which column A is dr_cr and E id INST_NO and column G is INST_AMT. This file like a bank statement. in which one instrument(cheque) present and i denote it c(credit) in column A. but if cheque credit then d(debit) means that this cheque present and dishonour. but some time one cheque credit and then debit and then credit. it means that we have to remove previous credit and debit entries. in this attached file you found this type of entries. i want to remove this type of entries. i further explain.
    1. if one instrument have one credit and one debit its ok.
    2. if one instrument two credit and one debit then remove one credit and one debit where instrument no and amount and drawee bank must be same.
    3. if one instrument have two credit and two debit we have two remove one one debit and one credit.

    4. if one instrument have three credit and two debit then we have to remove two credit and two debit so one credit left.

    i hope i clear the situation.







    thanks
    manoj
    Attached Files Attached Files

  2. #2
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Remove duplicate

    I can help shorten the time. Select all cells and add a filter.

    In cell H3 put the following formula.

    Please Login or Register  to view this content.
    Then filter on column H for "check".
    In column I put an x next to those that have checks.
    Unfilter all.
    Select cell I2 then press and hold CTRL then press down arrow.

    What this will do is put a check by each cell that matches the INST_AMT above it, matches the DRAWEE_BK name, matches DR_CR, but only if the row above it and the row above that match it. So you will see anything that has 3 matches or higher. This should elminate most of the time.

    Once you do this you should delete the orange rows in the attachment if i understand. Correct?

    Let me know if that helps. I can also write a macro to get you to the point where the only thing you have to do is select I2 and then use the CTRL + DOWN ARROW shortcut to find the first x.
    Attached Files Attached Files
    Thank those who have helped you by clicking the Star * below their name and please mark your post [SOLVED] if it has been answered satisfactorily.

  3. #3
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: Remove duplicate

    Was this suggestion able to help shorten the time?

+ 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. Remove duplicate IF...
    By bruizer31 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2013, 02:28 PM
  2. excel macro to remove specific columns and rows + remove duplicate
    By garrywelson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-17-2013, 12:03 PM
  3. Remove Duplicate
    By vumian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2011, 09:54 PM
  4. Remove duplicate
    By sophiaatwedding in forum Excel General
    Replies: 3
    Last Post: 12-03-2010, 04:50 AM
  5. Remove Duplicate
    By Bakar in forum Excel General
    Replies: 3
    Last Post: 11-24-2010, 07:37 AM

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