+ Reply to Thread
Results 1 to 3 of 3

Excel Formula Help! Price Lookup Formula.

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Excel Formula Help! Price Lookup Formula.

    Hi Everyone!

    I am trying to create a sophisticated price lookup in excel and cannot determine how to do it.

    I have attached a sample workbook called "sample sheet 2.xlsx"

    What I need to do is return a price based on the closest match.

    For Example if I input:
    Product ID: MOSWWFPLJ
    WIDTH: 32
    DEPTH: 22
    HEIGHT: 29

    The closest match in my "sample sheet 2.xlsx" sheet would be:

    Product ID: MOSWWFPLJ (WILL ALWAYS AN EXACT MATCH, otherwise no price is returned)
    WIDTH: 32 (WOULD RETURN EXACT OR GREATER MATCH, IN THIS CASE GREATER MATCH IS 36)
    DEPTH: 22 (WOULD RETURN EXACT OR GREATER MATCH, IN THIS CASE GREATER MATCH IS 24)
    HEIGHT: 29 (WOULD RETURN EXACT OR GREATER MATCH, IN THIS CASE EXACT MATCH IS 29)

    Therefore, a price of MOSWWFPLJ 36"W x 24"D x 29" High would be returned. In my example that price would be $435

    If there is no exact or greater match on any field (Width, Depth, or Height), no price will be returned.

    Thank you in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-07-2015
    Location
    AB, Canada
    MS-Off Ver
    Excel 2013 x64
    Posts
    132

    Re: Excel Formula Help! Price Lookup Formula.

    OK, picking the right dimensions is a little more complex than just taking the minimum value greater or equal to each dimension. You need the single part that contains dimensions that are ALL above the minimum dimensions specified. Ex. If I need a part with a minimum {32, 22, 42}, I would not pick the first and second dimensions from part {36, 24, 29} and the third dimension from part {72, 24, 42}.

    My understanding is that you are looking for the SINGLE PART that where the sum of the differences from the specified dimensions is smallest while still meeting ALL the minimum dimension requirements?

    If this is the case, I redesigned your "Closest matching dimensions" cells, as well as the "price of closest matching part" cell.

    The solution is an array formula, so you have to enter it by pressing Ctrl+SHIFT+Enter instead of just Enter.
    Please Login or Register  to view this content.
    See attached solution. Let me know if this works for you.
    Attached Files Attached Files

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Excel Formula Help! Price Lookup Formula.

    This should give you the price of 435.00

    =LOOKUP(2,1/((A5:A51=A56)*(B5:B51=B56)*(C4:C51=C56)*(D5:D51=D56)),(E5:E51))
    Last edited by AlKey; 09-04-2015 at 07:49 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 06-15-2015, 01:48 AM
  2. Replies: 6
    Last Post: 11-20-2014, 11:10 PM
  3. Excel Formula - Set Gram Price automatically
    By BCL in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-08-2014, 07:45 AM
  4. Calculating Selling Price Formula in Excel
    By hitari in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2013, 10:07 AM
  5. [SOLVED] Compare 1 price against multiple prices and change the price according to a formula
    By CharlieAziz in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-16-2012, 11:05 AM
  6. Excel formula for finding price
    By Pompel in forum Excel General
    Replies: 3
    Last Post: 12-05-2011, 02:48 AM
  7. Replies: 6
    Last Post: 10-12-2005, 03:05 PM

Tags for this Thread

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