+ Reply to Thread
Results 1 to 5 of 5

How to get an Intermediate value ?

  1. #1
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Arrow How to get an Intermediate value ?

    Dear Friends

    Herewith I attached one excel file. In that file temperatures with respect to their density is plotted. My requirement is I want to get an intermediate value.

    For example what is the value of Density when the temperature is 57°C. To do this Please anybody suggest an one word formula like TREND or FORECAST etc without drawing graph.

    Thanks

    thilag
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-08-2012
    Location
    South Suffolk
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: How to get an Intermediate value ?

    It looks like you had a good ideas of how to solve it! A possible function to use is TREND. In this case, the dependent variable is the Density and the independent variable (the one you can alter) is the temperature. Excel expresses the independent variable as known Ys and the independent variable as known Xs. The value you want to solve for is the new X (or Xs). If your new X value (57 C) is in cell D4, the formula is
    Please Login or Register  to view this content.
    giving an anwser of 1.072117 - somewhere between the values of 50C and 60C as expected. This is only an approximation as it is using a least squares fit. The result for 50C and 60C are slightly different from the 'observation'.
    TREND can be used as an array formula.
    Hope this helps.
    Last edited by AndyPS; 02-26-2012 at 10:49 AM. Reason: typo

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: How to get an Intermediate value ?

    AndyPS's solution can work, though the data don't look exactly linear with temperature.

    When I do a problem like this, I like to see if there's a theoretical equation underlying the data that will do better. Looking at the spreadsheet, I infer that these are densities for air? If so, and it looks like they are densities at about 1 atm pressure, I would probably use a simple equation like the ideal gas law (n/V=n*MW/V=P/RT). Ideal gas appears to be in error by, at most, 0.2%.

    For greater accuracy, I would probably reduce these data to compressibilities (z=PV/nRT), fit the compressibilities, then use the correlated compressibilities to get the density at other temperatures.

  4. #4
    Forum Contributor
    Join Date
    02-08-2012
    Location
    South Suffolk
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: How to get an Intermediate value ?

    MrShorty's quite right about the need to look for the underlying physics in solving your problem more precisely. Excel's TREND and FORECAST functions are straight line fits to data and so are not too good with non-linear relationships. The way forward is to transform the data to a coordinate set that results in a (close to) linear relationship then apply the least squares fit.
    It is always useful to look at the goodness of fit (e.g. PEARSON) to see if the relationship holds well - graphing is also useful.
    A simple transform for the gas equation is to change the temperature from Celsius to Kelvin^-1 - i.e. divide 1 by C+273. This gives a very good fit. Assuming the new value is in cell A21, the following formulae work:
    Please Login or Register  to view this content.
    The arguments are a little complex but they allow the coordinate transform without the need to calculate a new column.

  5. #5
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: How to get an Intermediate value ?

    Dear Mr. AndyPS

    Sorry for my very late reply.

    Thanks for your Immediate Help.

    My Sincere thanks to you.


    thilag

+ 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