+ Reply to Thread
Results 1 to 15 of 15

SUMPRODUCT between two dates

Hybrid View

  1. #1
    Registered User
    Join Date
    11-22-2006
    Posts
    9

    SUMPRODUCT between two dates

    Hi all I'm looking to use the below forumla

    =SUMPRODUCT(--('Monthly Release''s'!$G$3:$G2500=$A12)*--('Monthly Release''s'!$M$3:$M$2500=B$11))

    but change the green underlined value to be BETWEEN two dates.

    Any ideas ???

    Thanks

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by danviggers
    Hi all I'm looking to use the below forumla

    =SUMPRODUCT(--('Monthly Release''s'!$G$3:$G2500=$A12)*--('Monthly Release''s'!$M$3:$M$2500=B$11))

    but change the green underlined value to be BETWEEN two dates.

    Any ideas ???

    Thanks
    Hi,

    easiest would be to make the green >= and add another condition as <=

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    11-22-2006
    Posts
    9
    =SUMPRODUCT(--('Monthly Release''s'!$G$3:$G2500=$K12)*--('Monthly Release''s'!$K$3:$K$2500=2/10/2006>=5/10/2006))

    OK so I've done this and the value comes out as 23, when it shoudl be 1.

    There are 23 records that coincide with 'Monthly Release''s'!$G$3:$G2500=$K12, but there should be only 1 record that coincides with that AND has the date which has been shown above.

    I don't think I'm writing the date right.

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by danviggers
    =SUMPRODUCT(--('Monthly Release''s'!$G$3:$G2500=$K12)*--('Monthly Release''s'!$K$3:$K$2500=2/10/2006>=5/10/2006))

    OK so I've done this and the value comes out as 23, when it shoudl be 1.

    There are 23 records that coincide with 'Monthly Release''s'!$G$3:$G2500=$K12, but there should be only 1 record that coincides with that AND has the date which has been shown above.

    I don't think I'm writing the date right.
    Hi,

    How about

    =SUMPRODUCT(--('Monthly Release''s'!$G$3:$G2500=$K12)*--('Monthly Release''s'!$K$3:$K$2500=2/10/2006>=5/10/2006))

    =SUMPRODUCT(--('Monthly Release''s'!$G$3:$G2500=$K12)*--('Monthly Release''s'!$K$3:$K$2500=2/10/2006)*--('Monthly Release''s'!$K$3:$K$2500>=5/10/2006)))

    added, >= 2/10 ___ then <=5/10 ?

    (untested)
    Last edited by Bryan Hessey; 11-30-2006 at 06:54 AM.

  5. #5
    Registered User
    Join Date
    11-22-2006
    Posts
    9
    Thanks for the help.

    Tried the formula =SUMPRODUCT(--('Monthly Release''s'!$G$3:$G2500=$K12)*--('Monthly Release''s'!$K$3:$K$2500=2/10/2006)*--('Monthly Release''s'!$K$3:$K$2500>=5/10/2006)) ... and it gives the number '0'.

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by danviggers
    Thanks for the help.

    Tried the formula =SUMPRODUCT(--('Monthly Release''s'!$G$3:$G2500=$K12)*--('Monthly Release''s'!$K$3:$K$2500=2/10/2006)*--('Monthly Release''s'!$K$3:$K$2500>=5/10/2006)) ... and it gives the number '0'.
    Good, that works

    Try the new date test (blue stuff)

    --

  7. #7
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    You should be careful about the worksheet name in your formula ...

    '' appears in the middle of 'Monthly Release''s'!

    My suggestion, if need be is to change the worksheet name to
    Monthly Releases ... to avoid all possible problems ...

    HTH
    Carim

+ 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