+ Reply to Thread
Results 1 to 25 of 25

Altitude over distance to scale with missing data points - how to prevent bottoming out?

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Altitude over distance to scale with missing data points - how to prevent bottoming out?

    Hi There,
    I am trying to make a distance over altitude chart to a relative scale. The total distance is is 75km, so I am using 75 points at the bottom of the chart in order to maintain the scale, however I only have 15 known altitudes at irregular distance intervals. I'd like the graph (line, area or scatter smooth preferably) to be a smooth rise and fall between the data points that I have, but because all the median values are blank, I only get altitude spikes at those distances.

    Does anyone know a simple way to either fill in the multiple median points to allow an equal and gradual rise and decent between data points, or any other way to prevent the graph from bottoming out to 0 altitude between the available data points? I hope I've explained this clearly.

    Thanks very much for any help in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    I'm not sure your chart can automatically interpolate between known points; I would create a new (formula-based) range in the spreadsheet that automatically interpolates between the 2 nearest points if there is no known altitude, and then plot that range instead.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    I have 15 known altitudes at known distances. What formula would you recommend to auto-fill the median points? To use the median function for each empty cell individually is time prohibitive, but that is the limit of my excel knowledge right now.

  4. #4
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Just be sure I understand your data correctly: Does it look something like the attached? Don't mind the values, as they are randomly generated.
    Attached Files Attached Files
    Last edited by Søren Larsen; 04-11-2012 at 12:05 PM.

  5. #5
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Exactly like that. Though I only have 15 data points.

  6. #6
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    And you want to do a linear interpolation between the 2 known points in order to fill out the empty spaces?

  7. #7
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Yes, if there could be a gradual consistent increase and decrease between the known points.

  8. #8
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    It isn't pretty, but it works.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Wow, that is well beyond my level of Excel! Very much appreciated!

  10. #10
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    No problem.

  11. #11
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Is there an easy way to insert a 0 distance at the beginning? Because I dont fully understand the functions, I'm not sure how to insert the start point. Or if I wanted to increase the distance, to say 90km?

  12. #12
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    The values in the distance column do not matter; you can change them to whaterever you want.

    You can use the "Trace dependants" function under (Ribbon) "Formulas" on one of the distance cells; it will tell you that no cells, other than the other distances, depend on it.

  13. #13
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Ok, I will try to figure that out. Thanks again so much for your help!

  14. #14
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Is just ticking the 'smoothed line' checkbox on the format data series line style window not an option?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  15. #15
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    I see what you mean, but it is not working for me.

  16. #16
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Quote Originally Posted by Richard Buttrey View Post
    Is just ticking the 'smoothed line' checkbox on the format data series line style window not an option?
    Would that not just soften the sharp peaks of a line?

    And I quiver as I enter into a discussion with Mr. Buttrey.
    Last edited by Søren Larsen; 04-11-2012 at 01:26 PM.

  17. #17
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    In what way isn't it working?

    Could you upload a workbook and describe what you expect to see that the smoothed line doesn't give you.

  18. #18
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    See attached. If I chart the first two columns (not the filled in formula in the third) it creates the graph shown, even with the smooth lines clicked, it is not the chart I'm looking for. But I may be doing something else completely wrong, hence why I am here. All I need to figure out now is how to add distance 0, and add more km's at the end.
    Attached Files Attached Files

  19. #19
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Quote Originally Posted by Søren Larsen View Post
    Would that not just soften the sharp peaks of a line?

    And I quiver as I enter into a discussion with Mr. Buttrey.
    I didn't know I had that sort of reputation

    Indeed it would, you are of course correct the smoothing does just 'soften' the changes of direction.

    Your solution of interpolating values will still lead to a peak and a change of direction. And unless the change in values of the intermediate points are something other than a constant then the line between the given points is still straight. But I struggle to understand what else the poster wants.

  20. #20
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    The [extremely complicated formula based on my limited knowledge] works exactly how I need it to to create the desired effect. I just need to somehow figure out how it works so I can add a zero distance at the start, and add km's at the end of the trip, for example up to 90km and beyond.

  21. #21
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Quote Originally Posted by Richard Buttrey View Post
    I didn't know I had that sort of reputation

    Indeed it would, you are of course correct the smoothing does just 'soften' the changes of direction.

    Your solution of interpolating values will still lead to a peak and a change of direction. And unless the change in values of the intermediate points are something other than a constant then the line between the given points is still straight. But I struggle to understand what else the poster wants.
    Nothing I think. Except for an explanation of how to expand the formula downwards, which I'm still considering how to do in the best way.

    With regards to reputation: I'm just comparing # of posts, and having other solutions by you in the back of my head. So don't worry, there is no "talking about you behind your back". Not to my knowledge anyway...

  22. #22
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    If you just replace the blanks in col C with =NA() (or delete those lines entirely) and untick smooth lines, the data will appear interpolated between points.
    Entia non sunt multiplicanda sine necessitate

  23. #23
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    I figured the easiest way was to expand it for; perhaps this also will make it more easy for you to figure out how to expand later on. When you plot the range, then just choose the part containing values.
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    04-11-2012
    Location
    Edmonton, AB
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    @shg - If I delete the lines, the horizontal axis will not be to the desired relative scale.

    Søren, thanks very much. You have been a huge help!

  25. #25
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Altitude over distance to scale with missing data points - how to prevent bottoming ou

    Do you really need to calculate the interpolated points?

    Why not use the sparse data set and set the Hidden & Empty cells property to Connect data points with line. You can find this on the Select Data dialog > Hidden & Empty cells.

    Better yet why not simply have a table of know x(distance) and y(altitude) points.

    See attached for example charts based on original data and condensed data.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

+ 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