+ Reply to Thread
Results 1 to 6 of 6

One Payment, Multiple Dates, summation

  1. #1
    Registered User
    Join Date
    09-16-2010
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2007
    Posts
    6

    One Payment, Multiple Dates, summation

    My data is organized as follows:

    Payment Date Date Date

    25.00 5/14/2009 07/14/2009 09/14/2009
    50.00 05/15/2009 09/15/2009 01/15/2010


    is there any way that i could sum the total payments made per month and year across the entire sheet?

    the payment is assessed every time a date occurs. Therefore, I would pay 25.00 on 5/14/2009, 07/14/2009 and 09/14/2009.
    I also pay 50.00 on 5/15/2009, 9/15/2009 and 01/15/2010.

    So the total for May 2009 would be $75.00, July 2009 would be 25.00, September 2009 75.00, January 2010, $50.00

    Is there a function, preferably not a long macro, that could do this for me?

    Worksheet attached, let me know if further clarification needed
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,510

    Re: One Payment, Multiple Dates, summation

    Cell B7:

    Please Login or Register  to view this content.
    And drag down

    Regards

  3. #3
    Registered User
    Join Date
    09-16-2010
    Location
    Clearwater, Florida
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: One Payment, Multiple Dates, summation

    thank you!
    i really appreciate it!
    However, my actual dataset is actually thousands of rows long. Would there possibly be another way to accomplish this?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,510

    Re: One Payment, Multiple Dates, summation

    A realistic sample dataset is always beneficial in getting the result you are looking for :-)

    Please Login or Register  to view this content.

    Note that the "dates" in your original example are not "true" dates as they mostly have leading and trailing spaces. You'll need to address that or this formula will return a #VALUE! error.

    See the attached spreadsheet. There is one sheet showing the working formula and another with it broken by one value with spaces in it.

    Regards
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-15-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2008
    Posts
    5

    Re: One Payment, Multiple Dates, summation

    Thanks!
    (and yes, next time i will include a more realistic example!)

    How would I make my dates into real dates? Sorry for all of the questions, I really appreciate all of your help!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,510

    Re: One Payment, Multiple Dates, summation

    GQuinn/LenaJ887: are you leading a double life?

    If there are truly thousands of rows, it's not going to be a five minute job.

    The first problem is that there are leading and trailing spaces. Where does your data come from? A web site maybe? You should be able to get rid of these spaces using TRIM and/or CLEAN.

    However, even then, what is left isn't recognised as a date ... at least on my machine (in the UK).

    The dates could be dis-assembled and re-assembled with the following formula, if necessary:

    Please Login or Register  to view this content.

    Drag across and down, as necessary.

    Copy and Paste Special | Values over the original dates and format as date: mm/dd/yyyy, I guess.

    Regards

+ 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