+ Reply to Thread
Results 1 to 10 of 10

monthly deposits

  1. #1
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Exclamation monthly deposits

    Hi All,

    I have a spreadsheet that currently lists all of my clients(by account number) and all of their deposits made to my bank for the past 2 years. However, the clients are listed everytime they made a deposit, so if you can imagine, I have in column A1 many duplicated account numbers. (see attached)

    My goal is to use this dataset and create a new worksheet that lists only each account number once in column A1, and then list all the months from Jan '07 to Dec 08 from column B1 to Y1. If account number 518500(See attached example) made a deposit in 11/07 for $329, 12/07 for $360, 12/07 for $50 , 12/07 for $600 (3 deposits in December), and so on, how do I get excel to plot the total deposits per month onto the new worksheet with the month/year listed from B1 to Y1? I'm okay with blanks in the months a certain client didn't make a deposit

    Of course, as much automation as possible is ideal because I have over 13000 entries!

    Thank You very much!

    Frank
    Attached Images Attached Images
    Last edited by shg; 04-27-2009 at 07:07 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: monthly deposits

    nice goal! please post an excel example not an image.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Thumbs up Re: monthly deposits

    I'm attaching just a small fraction of the dataset since it'll take too long to create fictitious acc't numbers! Thanks for helping!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-19-2008
    Location
    CA
    Posts
    64

    Re: monthly deposits

    How many clients do you have? Did you want each client to have its own worksheet? Or all clients listed on a new worksheet with each account only listed once?

    Client A
    info
    info
    info
    info
    Client B
    info
    info
    info

  5. #5
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Thumbs up Re: monthly deposits

    Hi Lizabeta,

    Thanks for helping!

    I have about 200 clients, 13,000 entries, and I want all 200 clients to appear in one worksheet with each account listed only once. With the format like the attached.

    Thank You!
    Attached Images Attached Images

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: monthly deposits

    Hi,

    on another sheet (Sheet2) in your work book, create a unique list of clients in column A.

    In the first row enter the dates as the first of the month, i.e. 1-Jan-07, 1-Feb-07, etc.

    Then in cell B2 enter the following formula

    =SUMPRODUCT(($A2=Sheet1!$A$2:$A$30)*(Sheet2!B$1=DATE(YEAR(Sheet1!$B$2:$B$30),MONTH(Sheet1!$B$2:$B$30),1))*Sheet1!$C$2:$C$30)

    Copy down and across.

    See attached file for an example.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: monthly deposits

    WOW!!!

    That's simply amazing Teylyn!! That worked like a charm, and it was mesmerizing to watch Excel crunch through 200 of my client entries and populating each month with the correct deposit amounts.

    Thank YOU!!!!

  8. #8
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: monthly deposits



    SUMPRODUCT is very powerful and not very well known. I remember my first WOW effect, too.

    If you liked my solution, you can add to my reputation by clicking on the scale icon in the blue bar above my post.

    cheers

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: monthly deposits

    As I'm sure teylyn would agree SUMPRODUCTs though elegant are inefficient and ill advised when used in large quantities. Given in this instance they are being used to essentially ape the output of a Pivot Table why not use a PT ? It would in truth be more efficient Long Term and easier to adapt.

    If you are unwilling to use PT's then I would still advise against Sumproduct, you would be best served creating a concatenation column on your source sheet, eg:

    Sheet1!D2: =$A2&":"&$B2-DAY($B2)+1
    copied down for all rows

    You can then dispense with need for Sumproduct and revert to the far more efficient SUMIF, eg:

    results!B2: =SUMIF(Sheet1!$D:$D,$A2&":"&B$1,Sheet1!$C:$C)
    Where A2 holds account and B1 the month of interest

    I have provided an example of both methods in the attached file.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-27-2009
    Location
    Portland, USA
    MS-Off Ver
    Excel 2007
    Posts
    16

    Thumbs up Re: monthly deposits

    This forum is amazing!!!

    Thank You DonkeyOte for the additional method! I'm certainly an Excel noob, and your advice will certainly be put to good use.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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