+ Reply to Thread
Results 1 to 12 of 12

Interpolating data in excel tabel with missing data

  1. #1
    Registered User
    Join Date
    12-22-2012
    Location
    Amterdam
    MS-Off Ver
    Office 365
    Posts
    17

    Interpolating data in excel tabel with missing data

    Dear colleague,

    Excel is fantastic to solve several problems but this time I cann’t find a proper solution.
    I have a table with 21 numbers two rows with x and y e.g.
    nr. x y
    20 5,5
    19 5,4
    18 5,3
    17 5,2 0,18
    16 5,1 0,25
    15 5,0 0,30
    14 4,5 0,30
    13 4,0 0,35
    12 3,0
    11 2,0 0,65
    10 1,0
    9 0,9 0,80
    8 0,8 0,75
    7 0,7
    6 0,6 0,70
    5 0,5 0,68
    4 0,4 0,65
    3 0,3 0,64
    2 0,2 0,93
    1 0,1 1,10
    0 0,0 1,20

    Now I wish to make a table with 100 numbers in wish y is interpolated based on y in the given table.
    Using many IF statements (in Dutch “ALS“) isn’t usefull since the number of statements is becoming too large and besides is a number is missing e.g. nr7 x=0,7 the y is 0.
    Is there a solution?
    Thanx for any help

    With regards Onno


    This is not working properly:
    =
    ALS(P12<$H$28;"Bodem";
    ALS(P12<$H$27;$i$28;
    ALS(P12<$H$26;$i$27;
    ALS(P12<$H$25;$i$26;
    ALS(P12<$H$24;$i$25;
    ALS(P12<$H$23;$i$24;
    ALS(P12<$H$22;$i$23;
    ALS(P12<$H$21;$i$22;
    ALS(P12<$H$20;$i$21;
    ALS(P12<$H$19;$i$20;
    ALS(P12<$H$18;$i$19;
    ALS(P12<$H$17;$i$18;
    ALS(P12<$H$16;$i$17;
    ALS(P12<$H$15;$i$16;
    ALS(P12<$H$14;$i$15;
    ALS(P12<$H$13;$i$14;
    ALS(P12<$H$12;$i$13;
    ALS(P12<$H$11;$i$12;
    ALS(P12<$H$10;$i$11;
    ALS(P12<$H$9;$i$10;
    ALS(P12<$H$8;$i$9;
    ALS(P12<$H$7;$i$8;
    ))))))))))))))))))))))

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Interpolating data in excel tabel with missing data

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    12-22-2012
    Location
    Amterdam
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Interpolating data in excel tabel with missing data

    Here's the excel file.
    Attached Files Attached Files

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Interpolating data in excel tabel with missing data

    How do you want to interpolate it?
    There's too much data missing...
    Untitled.gif

  5. #5
    Registered User
    Join Date
    12-22-2012
    Location
    Amterdam
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Interpolating data in excel tabel with missing data

    That's just the case
    I have a column with data x and y
    but sometimes a pair of x,y is missing.
    So trend isn't working.
    So I want to make a full table based on the given table with some x and y values.
    The empty ones is just causing the problems you see.
    For one time it''ts ok to delete these empry rows but for every situation a different data set is given included some empty x,y pairs.

    The final result would be a table with some 100 or 200 x,y pairs

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Interpolating data in excel tabel with missing data

    Does this work?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-22-2012
    Location
    Amterdam
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Interpolating data in excel tabel with missing data

    Thanx for the suggestion.
    It works however I prefer trend since it usages linear interpolation.
    but trend cann't handle empty cells.

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

    Re: Interpolating data in excel tabel with missing data

    I tried using TREND to fill in the missing data from the bottom of the first list to the top by inserting the TREND formula in the first blank cell and selecting all the known X and Y values under the blank. When that was calculated, I then went to the next blank cell up the column and repeated the process until reaching the top of the data.


    This seems to work but not being confident enough in the methodology, didn't post it. I wasn't sure how this would be applied to the columns of new data that you showed.

    At the risk of embarrassment, is this anywhere close?
    Attached Files Attached Files
    <---------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

  9. #9
    Registered User
    Join Date
    12-22-2012
    Location
    Amterdam
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Interpolating data in excel tabel with missing data

    Yeah, this is a usefull solution. All the missing numbers are interpolated using linear regression and that’s what I wanted. Off course sometimes the estimated number isn’t perfect but this is very good for the moment.
    It would be great if the whole dataset could be used for interpolating.
    Thanx a lot!

    witn regards Onno Kramer

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

    Re: Interpolating data in excel tabel with missing data

    Thank you for the feedback.

    Interpolation is by its nature a "guess" so I wish you the best of luck with your project.

  11. #11
    Registered User
    Join Date
    12-22-2012
    Location
    Amterdam
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Interpolating data in excel tabel with missing data

    ok, thanx
    I try to help student with their project about purifying water.

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

    Re: Interpolating data in excel tabel with missing data

    Thank you for the feedback.

    Good luck with the project.

+ 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. Interpolating between data points
    By 21jackj in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-15-2013, 06:05 PM
  2. Interpolating data from an array that has different size each time
    By abinesh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2012, 11:57 AM
  3. Replies: 2
    Last Post: 03-04-2011, 03:57 PM
  4. Problem with interpolating data
    By Elise.B in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-20-2009, 10:15 AM
  5. Interpolating data
    By ebill in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-08-2008, 12:45 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