+ Reply to Thread
Results 1 to 6 of 6

SUMPRODUCT Date Range

  1. #1
    Registered User
    Join Date
    05-05-2016
    Location
    Seattle, WA
    MS-Off Ver
    2010
    Posts
    1

    Question SUMPRODUCT Date Range

    Looking for help.....super duper please
    I currently have a formula that is returning a value for a specific date from column A
    =SUM(SUMPRODUCT(--(BAR!$A$1:$A$9022=V$2)*(BAR!$AK$1:$AK$9022=$A58),BAR!$K$1:$K$9022))

    I need to update this formula to return a value searching date ranges from two columns (column G begin date and column H end date)

  2. #2
    Forum Guru Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMPRODUCT Date Range

    Try this...

    Use cells to hold the date criteria.

    A1 = start date
    B1 = end date

    =SUMIFS(BAR!$K$1:$K$9022,BAR!$A$1:$A$9022,V$2,BAR!$AK$1:$AK$9022,$A58,BAR!$G$1:$G$9022,">="&A1,BAR!$H$1:$H$9022,"<="&B1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    Waterlooville,England
    MS-Off Ver
    Office 2010
    Posts
    18,407

    Re: SUMPRODUCT Date Range

    Try...

    =SUMPRODUCT(--(BAR!$A$1:$A$9022=V$2)*(BAR!$AK$1:$AK$9022=$A58))*(BAR!$G$1:$G$9022>=Date)*(BAR!$H$1:$H$9022<=Date),BAR!$K$1:$K$9022))

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: SUMPRODUCT Date Range

    Hi -

    A sample spreadsheet would really help get to an answer for you. If you could post some sample data with a couple examples of your intended outcome that would be REALLY helpful. Are you comparing to a single cell in column G and Column H or are you comparing the entire column of dates of both G and H to Columns A and AK?

    Based on the information you have given, assuming a single cell in G and H, I would say your formula would look something like:

    =SUMPRODUCT((BAR!$A$1:$A$9022>=G?)*(BAR!$A$1:$A$9022<=H?)*(BAR!$AK$1:$AK$9022>=G?)*(BAR!$AK$1:$AK$9022<=H?),BAR!$K$1:$K$9022)

    As a side note there are a couple redundancies in your formula that I have removed from the above solution. First, I don't understand why you need SUM of the SUMPRODUCT. It will work, but it doesn't really do anything. Second, since you are multiplying your two conditions (Column A = V2 times Column AK = A58) you don't need the unary operator (the two dashes --). Doesn't hurt anything, but it's redundant. Again, just some picky stuff.

    Hope this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  5. #5
    Forum Guru Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMPRODUCT Date Range

    This operation can be done with the more efficient SUMIFS function.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,901

    Re: SUMPRODUCT Date Range

    Agree with Tony, especially is this is being used over a large range
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] Sumproduct with date range?
    By tche misere in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2014, 01:13 AM
  2. SUMPRODUCT Date range
    By staffroelofse in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-31-2012, 08:00 AM
  3. Replies: 8
    Last Post: 05-14-2012, 02:44 PM
  4. Date range in SUMPRODUCT
    By filky in forum Excel General
    Replies: 4
    Last Post: 02-03-2009, 06:39 AM
  5. Sumproduct with date range?
    By mitelkm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2008, 01:47 PM
  6. [SOLVED] Sumproduct with date range
    By ermeko in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-16-2006, 12:20 PM
  7. SUMPRODUCT using date range
    By was in forum Excel General
    Replies: 7
    Last Post: 02-22-2005, 08:23 PM

Tags for this Thread

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