+ Reply to Thread
Results 1 to 6 of 6

getting the total of debits and credits

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    getting the total of debits and credits

    Hello. I have this super complicated lookup that I need to do. Accountants at arms!! I want pull the total expense from a sheet for a particular line item.

    For example, 5031-100 is an account related to an expense. However, there are often multiple rows with that same value (they are not always unique).

    There are also credits and debits. A debit increases the expense and a credit reduces it.

    So, how would I lookup this up and sum any debits and subtract any credits related to that account? Example attached.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: getting the total of debits and credits

    Not sure how y6ou get -400, but try this...
    =SUMIF(A:A,G11,C:C)-SUMIF(A:A,G11,B:B)
    If you had negs in 1 of the columns (-100), then it woud have just been...
    =SUMIF(A:A,G11,B:C)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: getting the total of debits and credits

    Debit increase, credit reduces...so 100-500= -400. I'll take a look at your formula. Thanks.

  4. #4
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: getting the total of debits and credits

    I tried this. =SUMIF(Sheet2!C:C,C3&"-"&B3,June!E:E), but it didn't work. It's returning 0.

  5. #5
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: getting the total of debits and credits

    Hmm, it works if I put the criteria in quotes. At least on a sample test sheet. Let me try on the original with & formula above.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: getting the total of debits and credits

    Nor will it work, sumif() doesnt work that way

    =SUMIF(criteria range,criteria,sum range)
    C3 and B3 are not criteria, they are part of your data

    try this, to give you -400...
    =SUMIF(A:A,G11,B:B)-SUMIF(A:A,G11,C:C)

+ 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. Matching Debits and Credits
    By Hiruy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2015, 07:06 AM
  2. Debits and credits
    By Willow350 in forum Excel General
    Replies: 2
    Last Post: 12-07-2014, 11:34 AM
  3. debits and credits in one column
    By childothe1980s in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2013, 03:47 PM
  4. [SOLVED] Lookup Debits & Credits
    By Sniper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2012, 10:25 AM
  5. Highlighting Debits and Credits
    By vharjani in forum Excel General
    Replies: 15
    Last Post: 02-23-2012, 02:20 PM
  6. [SOLVED] Change debits to credits
    By Yo in forum Excel General
    Replies: 1
    Last Post: 04-10-2006, 08:20 PM
  7. [SOLVED] vertical lines between credits and debits
    By Carolyn in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-28-2006, 12:23 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