+ Reply to Thread
Results 1 to 6 of 6

Calculating a value without lookup table

  1. #1
    Registered User
    Join Date
    10-15-2014
    Location
    Nashville, Tennessee
    MS-Off Ver
    2010
    Posts
    2

    Calculating a value without lookup table

    I would like to know is if it is possible to find a exact value for a exact size pipe if the values are not in the lookup table.

    For instance, if 100" pipe is $400, 200" pipe is $700, 250" pipe is $900. How much would it be 217"? The answer should be something close to $775....but I don't know how to calculate exactly, or at least a good rough estimate.

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Calculating a value without lookup table

    off the top of my head, you could:

    1. Read the lookup table into an array
    2. Find the last size lower than the requested one and get its cost to give you COST1
    3. Take the cost from the next item in the array to give COST2
    4. Calculate the new cost based on those 2

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Calculating a value without lookup table

    I guess how i'd do it is to take the difference between 200 and 217 (17) and the difference between 250 and 200 being 50, assuming it is a linear increment 17/50 = 0.34 so take the difference between the prices of 200" pipe and 250" pipe which is $200, multiply that by the 0.34 which is $68 and add it to the lower end price of $700 so it would be $768.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculating a value without lookup table

    The price will depend upon how prices other than for lengths of 100", 200", 250" are handled. Are the prices in blocks...1"-99", 100"-199" etc. or is there a linear progression between the major values? The method makes a difference. Based on price per inch the price could be $759.50 based on the 200" pipe. The price would be $768 if you use a proportional difference between major price points like Sambo Kid did.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Calculating a value without lookup table

    Quote Originally Posted by kwinters360 View Post
    I would like to know is if it is possible to find a exact value for a exact size pipe if the values are not in the lookup table. For instance, if 100" pipe is $400, 200" pipe is $700, 250" pipe is $900. How much would it be 217"?
    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    That assumes you have 217 in A7, and you have 100, 200, 250 and 251 in A2:A5, and 400, 700, 900 and 900 in B2:B5.

    The formula interpolates linearly between two adjacent rows, the first row being the closest to the value in A7, but no more than that value.

    I assume A4 contains the largest possible value. The extra row in A5:B5 is needed to simplify the OFFSET expression. A5 can be any value larger than A4; for example, =A4+1. B5 can be any value; for example, =B4.
    Last edited by joeu2004; 10-15-2014 at 12:02 PM.

  6. #6
    Registered User
    Join Date
    10-15-2014
    Location
    Nashville, Tennessee
    MS-Off Ver
    2010
    Posts
    2

    Re: Calculating a value without lookup table

    Thank you. This is what I was looking for.

+ 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. Lookup a blank cell in a Lookup table and return a figure.
    By jonnops in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2014, 07:33 AM
  2. [SOLVED] Lookup question matching part of lookup value in the table array
    By kosmo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2013, 11:07 AM
  3. Replies: 0
    Last Post: 08-09-2013, 12:32 PM
  4. Replies: 3
    Last Post: 03-13-2012, 02:14 PM
  5. V-Lookup Formula calculating #N/A
    By Gambinus in forum Excel General
    Replies: 3
    Last Post: 06-21-2010, 09:27 AM

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