+ Reply to Thread
Results 1 to 6 of 6

Matching Debits and Credits

  1. #1
    Registered User
    Join Date
    06-05-2015
    Location
    Addis Ababa, Ethiopia
    MS-Off Ver
    2010
    Posts
    11

    Matching Debits and Credits

    Hi Everyone
    I'm in need of a function that can match debits and credits of different currencies. I want to match a positive and negative numbers and identify the values without a match.
    So far I have come up with =COUNTIF(B:B,-B2)=0. But it doesn't consider the currency column and the fact that there may be more than one value of the same value.
    Can anyone help?
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: Matching Debits and Credits

    Something like this?
    Matching Workbook_2.xlsx
    Inveniam Viam Aut Faciam

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Matching Debits and Credits

    =COUNTIFS(B:B,-B2,A:A,A2)=0
    try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: Matching Debits and Credits

    Yes nflsales solution is better sorry I'm still just a noob in Excel

  5. #5
    Registered User
    Join Date
    06-05-2015
    Location
    Addis Ababa, Ethiopia
    MS-Off Ver
    2010
    Posts
    11

    Re: Matching Debits and Credits

    Hi again guys

    Under ETB currency I have a value that is repeated many times. 300 is repeated 3 times and -300 five times and all eight times are considered a match. Is there any way you can make it match with the first positive or negative value it gets. Is it possible to put that in the function? Any recommendation you can give me is greatly appreciated.Sample.xlsx

  6. #6
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: Matching Debits and Credits

    I did not know how to get this done with a formula, so I tried a VBA solution
    Sample_2.xlsm
    If you run this macro, make sure you change it to your needs (columns, ranges,....)


    There are probably other, better, solutions like last 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. Debits and credits
    By Willow350 in forum Excel General
    Replies: 2
    Last Post: 12-07-2014, 11:34 AM
  2. debits and credits in one column
    By childothe1980s in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2013, 03:47 PM
  3. [SOLVED] Lookup Debits & Credits
    By Sniper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2012, 10:25 AM
  4. Matching debits and credits within range of cells
    By drewzilla652 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-28-2010, 12:35 PM
  5. incrementing rows for matching debits/credits
    By childofthe1980s in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2005, 04:05 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