+ Reply to Thread
Results 1 to 5 of 5

Sumproduct with date range?

  1. #1
    Registered User
    Join Date
    05-30-2014
    Posts
    13

    Sumproduct with date range?

    Hello Folks,

    I'm looking for a little help with the following formula.
    =SUMPRODUCT((Data!$A$2:$A$10000>="01/01/14")*(Data!$A$2:$A$10000<="01/31/14")*(Data!$I$2:$I$10000="Bulk")*(Data!$K$2:$K$10000=$A3)*(Data!$P$2:$P$10000=$B3)*(Data!$Q$2:$Q$10000=$C3))

    Do I need to add datevalue to my formula? Or format it differently?
    Its just giving me a 0 result right now but it should be 7 instances.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sumproduct with date range?

    yeah, it's reading "01/01/14" literally as a text string, not a date

    Try using "01/01/14"+0

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sumproduct with date range?

    You might also try

    =SUMPRODUCT((TEXT(Data!$A$2:$A$10000,"mmyy")="0114")*(Data!$I$2:$I$10000="Bulk")*(Data!$K$2:$K$10000=$A3)*(Data!$P$2:$P$10000=$B3)*(Data!$Q$2:$Q$10000=$C3))

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

    Re: Sumproduct with date range?

    Use cells to hold the dates then refer to those cells.

    What version of Excel are you using?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Sumproduct with date range?

    hi there. like tony asked, what is the version you are using. it helps us give you newer & more efficient formulas. you could use COUNTIFS for eg if you have Excel 2007 & above:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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. Replies: 8
    Last Post: 05-14-2012, 02:44 PM
  2. Sumproduct from date range
    By KennyG in forum Excel General
    Replies: 1
    Last Post: 04-27-2010, 03:42 PM
  3. sumproduct with date range
    By vasto in forum Excel General
    Replies: 1
    Last Post: 03-14-2009, 06:03 PM
  4. Sumproduct with date range?
    By mitelkm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2008, 01:47 PM
  5. [SOLVED] Sumproduct with date range
    By ermeko in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-16-2006, 12:20 PM

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