+ Reply to Thread
Results 1 to 6 of 6

SUMPRODUCT with latest Date

  1. #1
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    182

    Unhappy SUMPRODUCT with latest Date

    Hi All,

    So I have a new project which I make weekly updates to...what I would like to do is write a SUMPRODUCT statement with three validations and one sum...should look something like this:

    =sumproduct((Tab1!A1:A100=Tab2!A1)*(Tab1!B1:B100=Tab2!A2)*(Tab1!C1:C100"largest value---this is where I need help--")*(TAB1!D1:D100))

    Basically I download a forecast from my customer which is rolling for 4 weeks, looks like a step ladder, here is an example:

    Forecast Week 1: Week 1 FCST (100) Week 2 FCST (150) Week 3 FCST (100) Week 4 FCST (200) - -
    Forecast Week 2: Week 1 (complete) Week 2 FCST(200) Week 3 FCST (150) Week 4 FCST (150) Week 5 FCST (300)
    Forecast Week 3: Week 1 (complete) Week 2 (complete) Week 3 FCST (200) Week 4 FCST (100) Week 5 FCST (450) Week 6 FCST (500)


    See how it is stepping down, each week becomes the most recent. I want a formula which will gather the latest Forecast based on the Part (Tab1!A1:A100), Work Week(Tab1!B1:B100), and the latest Forecast Week(Tab1!C1:C100), then sumproduct the quantities forecasted(Tab1!D1:D100).

    Does this make sense...?? There should be some kind of logic I can put in to look for the latest forecast week...or maybe someone has a better suggestion...

    Thanks,
    Matt

  2. #2
    Registered User
    Join Date
    11-28-2004
    Posts
    11
    How about this (untested):

    =sumproduct((Tab1!A1:A100=Tab2!A1)+0,(Tab1!B1:B100=T ab2!A2)+0,(Tab1!C1:C100=max(tab1!c1:c100))+0,TAB1!D1:D100)


    Hope this helps
    Barrie Davidson
    My Excel Web Page

    "You're only given a little spark of madness. You mustn't lose it." - Robin Williams

  3. #3
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    182

    Unhappy

    Hello Barrie,

    Thank you for the help, unfortunatly it does not work.

    Any other ideas....anyone??

    Thanks,
    Matt

  4. #4
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    The solution given by Barrie is correct. Maybe, you could give a small numerical example and the expected answer, then we could help. Give your ranges in each of the column with say 5 to 6 rows.

    Mangesh

  5. #5
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    182
    Could it be that the column I am trying to find the MAX is a Date is formatted like " 02/22/05 9:28:28 AM"??

    Matt

  6. #6
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    The format of the column does not matter as excel internally treats dates as numbers.

    Mangesh

+ 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