+ Reply to Thread
Results 1 to 9 of 9

How to seperate and count credit and debit items based on dates?

  1. #1
    Registered User
    Join Date
    05-14-2015
    Location
    Chicago, Illinios
    MS-Off Ver
    2007
    Posts
    35

    How to seperate and count credit and debit items based on dates?

    Ok guys, so i was given a report, and i need to make a template so that i'm given the total amount of debits and credits for that particular day. I was able to seperate in a seperate column the credits and debits and do a WHOLE credit/debit amount but my boss needs to know what these for each particular day. Any suggestions?


    If this could be turned into a macro that would be great because they're going to constantly give me reports like this for the entire month in that format.
    Last edited by Pr0x1mo; 07-12-2016 at 03:00 PM. Reason: forgot my excel sheet

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: How to seperate and count credit and debit items based on dates?

    You could probably do this with a SUMIF or COUNTIF formula in a small table, where you list the dates down the first column of the table and then the SUMIF formula can total the amounts for each day.

    It is difficult to give you an exact formula to use, however, as you have given no details about how your data is laid out - perhaps you could attach a sample Excel workbook for us to look at (ensure there is no confidential data in it).

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Pete

  3. #3
    Registered User
    Join Date
    05-14-2015
    Location
    Chicago, Illinios
    MS-Off Ver
    2007
    Posts
    35

    Re: How to seperate and count credit and debit items based on dates?

    Its attached, Sir.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: How to seperate and count credit and debit items based on dates?

    The sheet is protected, so I can't try out any formulae in it.

    Pete

  5. #5
    Registered User
    Join Date
    05-14-2015
    Location
    Chicago, Illinios
    MS-Off Ver
    2007
    Posts
    35

    Re: How to seperate and count credit and debit items based on dates?

    Whoops sorry, here it is unprotected

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to seperate and count credit and debit items based on dates?

    Pivot table?

    M
    N
    O
    1
    Data
    2
    Pay Date Sum of Credits Sum of Debits
    3
    4-Jan
    1477.49
    -446.19
    4
    5-Jan
    4023.53
    0
    5
    6-Jan
    4073.54
    0
    6
    7-Jan
    109.38
    0
    7
    8-Jan
    2722.38
    0
    8
    11-Jan
    411.12
    0
    9
    12-Jan
    369.42
    0
    10
    13-Jan
    1020.42
    -183.74
    11
    15-Jan
    372.84
    0
    12
    18-Jan
    681.54
    0
    13
    19-Jan
    4199.14
    -172.46
    14
    20-Jan
    1518.95
    -352.95
    15
    21-Jan
    1450.98
    0
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    05-14-2015
    Location
    Chicago, Illinios
    MS-Off Ver
    2007
    Posts
    35

    Re: How to seperate and count credit and debit items based on dates?

    Oh that would work! But could it tell you an item count. She doesn't just want the total amounts, she wants the number of debit items and credit items. Thanks in advance!

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to seperate and count credit and debit items based on dates?

    Just change Sum to Count.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: How to seperate and count credit and debit items based on dates?

    Sorry for the delay in getting back to you - long phone call from my daughter.

    I've set this up using formulae in the attached file. I've used columns L to P so that you can compare it with what you have derived, but really columns G to J are no longer needed.

    I've derived the dates with this formula in L5:

    =INT(MIN(D:D))

    and this one in L6:

    =IF(L5="","",IF(L5+1>MAX(D:D),"",L5+1))

    which can then be copied down until you start to get blanks - this will then automatically adjust to your data. As your dates include times, I've had to use SUMPRODUCT instead of COUNTIF/SUMIF, so I've put this formula in M5:

    =SUMPRODUCT((INT($D$2:$D$512)=$L5)*($E$2:$E$512>0))

    for counting credits. The formula in N5 (for debits) is very similar:

    =SUMPRODUCT((INT($D$2:$D$512)=$L5)*($E$2:$E$512<0))

    I've then used the next two columns for the amounts, with this formula in O5:

    =SUMPRODUCT((INT($D$2:$D$512)=$L5)*($E$2:$E$512>0),$E$2:$E$512)

    and this in P5:

    =SUMPRODUCT((INT($D$2:$D$512)=$L5)*($E$2:$E$512<0),$E$2:$E$512)

    These formulae can then be copied down as far as you need to, and I've put some total formulae in row 2 which look at data down to row 500.

    You should be able to apply this approach to any amount of data in columns A to F, but you will need to extend the ranges (from $512) if you have more data.

    Hope this helps.

    Pete

+ 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. Debit - Credit - Balance
    By CrazynWild in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2014, 08:15 AM
  2. debit-credit
    By tiki33 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2014, 03:13 AM
  3. I want to eliminate the debit and credit
    By optixbaba in forum Excel General
    Replies: 7
    Last Post: 05-02-2013, 11:42 PM
  4. Debit credit formulas
    By SAMEEP in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 11-08-2011, 01:13 PM
  5. Help with a Debit Credit Table
    By LJRich39817 in forum Excel General
    Replies: 2
    Last Post: 03-01-2011, 08:57 AM
  6. [SOLVED] Credit and Debit formating
    By Tim in forum Excel General
    Replies: 1
    Last Post: 05-01-2005, 05:33 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