+ Reply to Thread
Results 1 to 3 of 3

Help! Sum of a range based on two variables

  1. #1
    Registered User
    Join Date
    06-18-2009
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Help! Sum of a range based on two variables

    Hey! I'm trying to create a simple checkbook application for a friend. I've gotten pretty much everything I want figured out except for two functions, which are basically the same thing. I'm trying to find the sum of all deposits and of all withdrawals based on two entered dates. Basically, they enter the dates, and the formula finds the dates, then sums all the deposits/withdrawals between them. Can anyone help? I attached the workbook with some sample data in case I wasn't really clear. Thanks!
    Attached Files Attached Files
    Last edited by sequence19; 06-18-2009 at 01:39 PM.

  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: Help! Sum of a range based on two variables

    In M12:
    =SUMPRODUCT(--($D$6:$D$300>=$M$8),--($D$6:$D$300<=$M$9),$G$6:$G$300)

    In M13:
    =SUMPRODUCT(--($D$6:$D$300>=$M$8),--($D$6:$D$300<=$M$9),$F$6:$F$300)
    (this one DOES match your sample total)
    _________________
    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
    06-18-2009
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Help! Sum of a range based on two variables

    Thank you!

+ 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