Lookup for price with multiple criteria and date range

Shakil Nagori 1 Reputation point
2022-02-02T07:52:23.09+00:00

170360-example.png
As you can see I have multiple supplier of multiple items with fluctuating price every week. I want to get price when it match the supplier name and material name and given date.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,720 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,689 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Lz._ 8,991 Reputation points
    2022-02-02T09:00:20.057+00:00

    Hi @Shakil Nagori

    170496-screenshot.png

    in E27:

    =INDEX(FILTER(D$17:G$23, (B$17:B$23=C27)*(C$17:C$23=D27)),,XMATCH(B27,D$16:G$16))  
    

    Corresponding sample workbook avail. here

    0 comments No comments

  2. Emily Hua-MSFT 27,601 Reputation points
    2022-02-04T09:30:48.53+00:00

    Hi @Shakil Nagori

    Accoring to your description, I have a question, will the date criterias and the dates of the source data be different?
    171248-capture59.jpg

    If not, they are the same, please check whether Lz-3068's reply is helpful.
    You could also try Sumproduct function, =SUMPRODUCT(($C$1:$F$1=$A12)*($A$2:$A$8=$B12)*($B$2:$B$8=$C12),($C$2:$F$8))
    171180-capture60.jpg

    If yes, they are may not same, please try following formula.
    =INDEX(($C$2:$F$8),MATCH($B12&$C12,$A$2:$A$8&$B$2:$B$8),MATCH(MAX(IF($C$1:$F$1<=$A12,$C$1:$F$1)),$C$1:$F$1))
    172489-capture5.jpg

    Any updates, you can let us know.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.