+ Reply to Thread
Results 1 to 4 of 4

Date Range evaluation and adding help

Hybrid View

  1. #1
    Registered User
    Join Date
    10-22-2011
    Location
    Pennsylvania (PA)
    MS-Off Ver
    Excel 2003
    Posts
    2

    Date Range evaluation and adding help

    Hello,

    I am ok with excel and basic queries and need some help with something more complicated.

    I have a page that looks like this

    Date Due Paid
    9/1/2011 $385.00
    10/1/2011 $385.00
    11/1/2011 $385.00
    12/1/2011 $385.00
    1/1/2012 $385.00
    2/1/2012 $385.00
    3/1/2012 $385.00

    On another page I have something that looks like this:

    9/22/2011 $400.00
    9/18/2011 $400.00
    10/2/2011 $350.00
    10/15/2011 $350.00

    At any given time someone can make 4 payments on different days which go towards that months total.

    I need to take the Date (9/1/2011) find the end of the month which I beleive is =DATE(YEAR(A7),1+MONTH(A7),0) and total
    and values on the other page that fall into that Range. I messed around with SumProduct and Vlookup but didn't get anywhere.

    Any help would be appreciated.

    Thank you,
    Brandon
    Last edited by ichversuchte; 10-24-2011 at 04:50 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Date Range evaluation and adding help

    If the month start is in A2, then the next month start is always the next cell down, yes? So you can refer to that next row for your cutoff date (method 1), or you can use EOMONTH() function, if you turn on the Analysis Toolpak addin (method 2).

    Method 1) In B2:
    =SUMPRODUCT(--(Sheet2!$A$1:$A$100>=$A2), --(Sheet2!$A$1:$A$100<$B2, Sheet2!$B$1:$B$100)

    Method 2) In B2:
    =SUMPRODUCT(--(Sheet2!$A$1:$A$100>=$A2), --(Sheet2!$A$1:$A$100<=EOMONTH($A2,0), Sheet2!$B$1:$B$100)
    Last edited by JBeaucaire; 10-23-2011 at 03:37 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-22-2011
    Location
    Pennsylvania (PA)
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Date Range evaluation and adding help

    That worked great. Thank you very much!

    Brandon

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Date Range evaluation and adding help

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ 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