+ Reply to Thread
Results 1 to 3 of 3

[SOLVED] Advanced Lookup w/Dates

  1. #1
    Steve_C
    Guest

    [SOLVED] Advanced Lookup w/Dates

    I am trying to do a forcast sheet for one customer. Here is the genral
    layout of the sheet I am pulling data from.
    P/N QTY Ship Date
    a 5 2/7/06
    a 2 3/5/06
    a 8 3/5/06

    What I need is the sum of Part "a" by ship date. Here is what I am using
    now. This works but does not sum the quantitys with the same ship date.
    INDEX(INDIRECT("'"&$S$9&"'!$Q$2:$Q$5"),MATCH($Q11&"_"&$R11,INDIRECT("'"&$S$9&"'!$F$2:$F$5")&"_"&INDIRECT("'"&$S$9&"'!$P$2:$P$5"),0))

    Thanks
    Steve_C

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    I can't work out your references but if you potentially have more than one quantity for a specific part number and ship date you probably need a different formula e.g.

    =SUMPRODUCT(--(F2:F5=X1),--(G2:G5=Y1),H2:H5)

    where F2:F5 contain your part numbers and X1 the specific part you wish to sum for and G2:G5 contains your dates and Y1 your specific date, H2:H5 contains your quantities

  3. #3
    Steve_C
    Guest

    Re: Advanced Lookup w/Dates

    YOU ROCK!!
    That works perfectly!

    Thank you!
    Steve

    "daddylonglegs" wrote:

    >
    > I can't work out your references but if you potentially have more than
    > one quantity for a specific part number and ship date you probably need
    > a different formula e.g.
    >
    > =SUMPRODUCT(--(F2:F5=X1),--(G2:G5=Y1),H2:H5)
    >
    > where F2:F5 contain your part numbers and X1 the specific part you wish
    > to sum for and G2:G5 contains your dates and Y1 your specific date,
    > H2:H5 contains your quantities
    >
    >
    > --
    > daddylonglegs
    > ------------------------------------------------------------------------
    > daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
    > View this thread: http://www.excelforum.com/showthread...hreadid=509520
    >
    >


+ 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