+ Reply to Thread
Results 1 to 6 of 6

Match Debits and Credits

  1. #1
    Registered User
    Join Date
    02-16-2021
    Location
    Maine
    MS-Off Ver
    MS Office Pro 10
    Posts
    3

    Match Debits and Credits

    Good afternoon!

    I have a large amount of data (100K+ rows) where I need to match debits (position amounts) with offsetting credits (negative amounts) based on the the invoice. I have been using this function =ROUND(SUMIFS([AMT],[XREF],[XREF]),2)=0; however, it has not found all offsetting entries and takes forever! I am attaching a file with data, as an example, and would appreciate any help/thoughts to achieve this more quickly or to get a macro to accomplish this task.

    Thank you!!!
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Match Debits and Credits

    The formula you gave above will produce TRUE if the net total of entries for that XREF is 0 (FALSE otherwise) and seems like a reasonable formula. What do you mean it has not found all entries? You have to make sure that all matching XREFs are stored identically--no spaces at the beginning or end.

    You don't need SUMIFS because there is only one criterion. I tried this and it worked fine:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See attached example.

    I know this is just a small sample, but none of your XREF data nets to 0, so it's hard to give it a thorough test. I added couple of numbers to force a TRUE answer and that formula worked fine for me. If it doesn't work in your full data, you need to show enough data to demonstrate where it doesn't work.

    If you put your file in a ZIP file and it's under 9MB, you can attach it. For some reason the limit for zip files is much larger than for Excel files.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-16-2021
    Location
    Maine
    MS-Off Ver
    MS Office Pro 10
    Posts
    3

    Re: Match Debits and Credits

    Thank you for responding 6StringJazzer. I went back and looked at the data and discovered some of the "FALSE" are due to the condition being =0

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Match Debits and Credits

    Does that mean you solved your problem?

  5. #5
    Registered User
    Join Date
    02-16-2021
    Location
    Maine
    MS-Off Ver
    MS Office Pro 10
    Posts
    3

    Re: Match Debits and Credits

    [SOLVED] My formula needed revision, a better formula, which you provided. Thanks again.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Match Debits and Credits

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon addreputationiconsmall.jpg below their name.

+ 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. Replies: 4
    Last Post: 01-10-2021, 11:45 PM
  2. Macro to match Debits and Credits, verifying four columns of each debit and credit match
    By forcedto register in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-22-2016, 05:28 PM
  3. Want to Match Debits and Credits for la ist of Customers
    By Suri159951 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-02-2016, 10:30 AM
  4. way to match 2 or amounts to 1 amount, debits and credits!
    By nimv1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2016, 08:57 PM
  5. [SOLVED] Vba code to match multiple debits and credits by account number
    By TheRock_82 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-12-2015, 05:17 PM
  6. Debits and credits
    By Willow350 in forum Excel General
    Replies: 2
    Last Post: 12-07-2014, 11:34 AM
  7. Can't remove debits/credits that match
    By grecon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2010, 04:28 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