+ Reply to Thread
Results 1 to 5 of 5

Predicting values for non-linear set of data

  1. #1
    Registered User
    Join Date
    04-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Predicting values for non-linear set of data

    I am working on interpolating some numbers. I have a column of names, 1 column of an incomplete set of numbers, and a 2nd column of complete numbers. I need to predict values for the incomplete column of numbers using the surrounding non-linear set of data.

    For instance, the "Column 1" value for "Test 4" needs to be predicted based on B2:B8 and C2:C8. (see file)

    Setting up the Forecast() function for every interval works, but is very time consuming. I need a formula that will be able to find the correct interval. This data is not linear, so I need it to be using the correct intervals.

    Please see attachment for more information

    Any help would be greatly appreciated! Thanks!
    Attached Files Attached Files
    Last edited by scoffman; 04-22-2011 at 09:51 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Predicting values for non-linear set of data

    Do you have specific blocks of data that you want separated? From your example, your first block is x from 0 to 28.6.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Predicting values for non-linear set of data

    Yes, the empty cells need values calculated based on the surrounding values in "Column 1" with their corresponding values in "Column 2"

    For instance, values in B3:B7 need to be calculated using 0 and 28.6 from "Column 1" and 1133909 and 2599644 from "Column 2"

    Another example, values in B10:B19 need to be calculated using 28.6 and 33.5 from "Column 1" and 2731462 and 6545742 from "Column 2"

    These are easy to define using Forecast() and setting it up for each interval. I would like a formula that looks at "Column 2" and decides which interval that value is in based on "Column 1", then uses the 2 values from "Column 1" along with the values in "Column 2" for that interval and calculates the missing values for "Column 1"

    Hopefully that wasn't terribly confusing.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Predicting values for non-linear set of data

    Okay, here's how I did it. First, I created a table just for your known values/standards by filtering on non-blanks in col B and copying and pasting that into F29.

    Here is the formula that I put into C3 and then copied and pasted into all your blank spaces.

    =FORECAST(C3,(INDEX($G$29:$G$35,MATCH(C3,$H$29:$H$35,1)):INDEX($G$29:$G$35,MATCH(TRUE,INDEX(($H$29:$H$35>=C3),0),0))),(INDEX($H$29:$H$35,MATCH(C3,$H$29:$H$35,1)):INDEX($H$29:$H$35,MATCH(TRUE,INDEX(($H$29:$H$35>=C3),0),0))))

    It's a little complex but it works. Maybe someone else can simplify. Some explainations;

    INDEX($G$29:$G$35,MATCH(C3,$H$29:$H$35,1)) pulls back the location of the last y value less than the value in C3

    INDEX($G$29:$G$35,MATCH(TRUE,INDEX(($H$29:$H$35>=C3),0),0)) pulls back the first y value greater than the value in C3.
    This is repeated for the x values and placed inside the forcast function.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Predicting values for non-linear set of data

    Thank you so much! That works!

+ 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