+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Need the help of a math whiz for interpolation formula

  1. #1
    Registered User
    Join Date
    12-24-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    89

    Need the help of a math whiz for interpolation formula

    Morning

    My math skills suck! I'm lucky if I get 4 if I add 2 + 2. So I am in need of someone who speaks math as a second language.

    The given:

    Airplane's compass correction card showing deviation correction for heading.

    FOR.....STEER....DEV.
    0............0..........0
    30.........33.........3
    60.........62.........2
    90.........95.........5
    120......120........0
    150......155........5
    180......176.......-4
    210......210........0
    240......243........3
    270......270........0
    300......303........3
    330......325.......-5

    Every compass is affected by the electrical equipment and the ferrous materials near the compass. So in order to make a heading FOR 60 degrees, allowing for deviation, you would need to actually STEER 62 degrees. etc.

    What I would like is to have a formula that would interpolate the deviation for the headings between that of those shown on the correction card.

    So if the user enters the value of 115 in A1 then B1 would show the deviation and C1 would show the corrected heading.

    Much appreciate any help on this.

    George
    Attached Files Attached Files
    Last edited by BigGPL; 03-26-2012 at 07:28 AM. Reason: wrong file

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Need the help of a math whiz for interpolation formula

    Hello
    I'm no maths wizard either but do you just require to lookup the values from your correction card? For example what would be the value for 115?

    Having read MrShorty's detailed and informed reply I now realize it's more complex than a mere lookup problem so please ignore this post.

    Regards DBY
    Last edited by DBY; 03-25-2012 at 10:37 AM.

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

    Re: Need the help of a math whiz for interpolation formula

    Can I assume you want a linear interpolation.

    The hardest of a linear interpolation problem is the lookup part -- how do I find the interval containing the given x. I think the MATCH function does this job well.

    Once you have located the interval, the INDEX function will easily return the x and y values for the interval determined from the MATCH function

    I would use MATCH and INDEX to build a small, 2 entry table off to the side of the main table. then you can use the TREND function to do the interpolation.

    I'm not a fan of building big complex formulas like this into a single cell, so, if that's what you want, someone else will have to help you combine all this into one.

    I also might add, if you have access to QuattroPro instead of Excel, they had a nice built in linear interpolation formula that would handle this problem easily.

  4. #4
    Registered User
    Join Date
    12-24-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Need the help of a math whiz for interpolation formula

    Hey Guys

    Thanks for the replies.

    I've been tinkering around and came up with the attached file.

    The problem I have is that it needs to return values between 0 and 360. So in other words if the magnetic heading is 358 degrees and the deviation is 4 then the new heading would be 002 degrees and not 362!

    Any Thoughts
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-24-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Need the help of a math whiz for interpolation formula

    Crap!
    I goofed.

    Please remove the Data validation from D20 in the attached file I provided in the previous post.


    George.

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

    Re: Need the help of a math whiz for interpolation formula

    For reasons on my end, I can't download your file, so I can't see exactly why you are getting a +4 result for 358, so there might be a more elegant solution that I can't see.

    The easiest solution might be to simply put the final result inside of an IF() function to handle those cases. =IF(finalresult>360,finalresult-360,finalresult)

+ 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