+ Reply to Thread
Results 1 to 3 of 3

Cust & Product lookup pricing between date ranges

  1. #1
    Registered User
    Join Date
    05-17-2007
    Posts
    5

    Cust & Product lookup pricing between date ranges

    Hi excel experts. Hope you can point me in the right direction. I've been struggling for a few days without success. I think I need a lookup with match &/or index, but can't figure it out.
    I have invoice extract by cust & product with billing date as key. I need to lookup correct pricing based on a separate pricing extract with Cust / Prod & 2 columns having date start & date end ... this table is 30M+ rows big.
    I concatenated the Cust & Prod thinking this would help with vlookup, but I know little about match/index functions.
    Attached example file for your reference.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Cust & Product lookup pricing between date ranges

    Try this, it sort of works (I think)

    1) In column O enter
    =SUMPRODUCT((B2>='pricing extract'!E:E)*(B2<='pricing extract'!F:F)*(H2='pricing extract'!A:A)*(I2='pricing extract'!B:B),'pricing extract'!E:E)

    and format column E as dates

    2) In column P enter
    =SUMPRODUCT((B2>='pricing extract'!E:E)*(B2<='pricing extract'!F:F)*(H2='pricing extract'!A:A)*(I2='pricing extract'!B:B),'pricing extract'!G:G)

    3) In column Q enter
    =SUMPRODUCT((B2>='pricing extract'!E:E)*(B2<='pricing extract'!F:F)*(H2='pricing extract'!A:A)*(I2='pricing extract'!B:B),'pricing extract'!I:I)

    This doesnt work in column R as the data in 'pricing extract'!J:J is text, am sure someone will find the solution to this column though
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    05-17-2007
    Posts
    5

    Re: Cust & Product lookup pricing between date ranges

    Thanks for the response Special K, but all the entries I need in cols O:R are text entries. I thought the sumproduct provides a summation ... not what I want; I want the lookup feature for the particular Cust/Prod/Date range

+ 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