+ Reply to Thread
Results 1 to 8 of 8

Looking for the fourth point value in y=ax+b

  1. #1
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Looking for the fourth point value in y=ax+b

    This post is continue from my previous post. You may refer to the link below:

    HTML Code: 
    In my previous post, I tried to finish the value of the crossing point. In this post, I try to find the value of the fourth point when the two lines come to the same point. This mean 3 defined point and 1 non-defined point.

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

    Re: Looking for the fourth point value in y=ax+b

    Can you clarify the question? I'm not sure I see the problem. Using linear interpolation, I see two points of intersection there, both of which are found by the current algorithm used in jhren's last spreadsheet in the thread. Do you need to choose between one of those solutions and how would you choose which is correct, or is there some other question about the given solution?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Looking for the fourth point value in y=ax+b

    DavidRoger(2).xls
    Quote Originally Posted by MrShorty View Post
    Can you clarify the question? I'm not sure I see the problem. Using linear interpolation, I see two points of intersection there, both of which are found by the current algorithm used in jhren's last spreadsheet in the thread. Do you need to choose between one of those solutions and how would you choose which is correct, or is there some other question about the given solution?
    I think I should clarify my question. This question has nothing to do with previous question but I am using the previous scenario to ask different question. It is better if you refer to my attachment.

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

    Re: Looking for the fourth point value in y=ax+b

    Am I understanding correctly. You want to find the value in B57 that would make the two moving averages in C57 and D57 the same?

    The easiest, if you don't want to change any cell formulas, might be to use Goal Seek/Solver. Add a formula =C57-D57. Then call Solver and tell it to set this cell to a value of 0 by changing B57.

    To get something more automated, I would probably spend some time with the algebra:
    sma1=average(5 cells)=sum(5 cells)/5=(x6+x7+x8+x9+x10)/5
    sma2=average(10 cells)=sum(10 cells)/10=(x1+x2+...+x9+x10)/10
    sma1=sma2 --> (x6+x7+...+x10)/5=(x1+x2+...+x10)/10 --> Solve this equation for x10. Then place this formula into B57.

  5. #5
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Looking for the fourth point value in y=ax+b

    Quote Originally Posted by MrShorty View Post
    Am I understanding correctly. You want to find the value in B57 that would make the two moving averages in C57 and D57 the same?

    The easiest, if you don't want to change any cell formulas, might be to use Goal Seek/Solver. Add a formula =C57-D57. Then call Solver and tell it to set this cell to a value of 0 by changing B57.

    To get something more automated, I would probably spend some time with the algebra:
    sma1=average(5 cells)=sum(5 cells)/5=(x6+x7+x8+x9+x10)/5
    sma2=average(10 cells)=sum(10 cells)/10=(x1+x2+...+x9+x10)/10
    sma1=sma2 --> (x6+x7+...+x10)/5=(x1+x2+...+x10)/10 --> Solve this equation for x10. Then place this formula into B57.
    Do you mind telling more about the Solver?

  6. #6
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Looking for the fourth point value in y=ax+b

    Quote Originally Posted by MrShorty View Post
    Am I understanding correctly. You want to find the value in B57 that would make the two moving averages in C57 and D57 the same?

    The easiest, if you don't want to change any cell formulas, might be to use Goal Seek/Solver. Add a formula =C57-D57. Then call Solver and tell it to set this cell to a value of 0 by changing B57.

    To get something more automated, I would probably spend some time with the algebra:
    sma1=average(5 cells)=sum(5 cells)/5=(x6+x7+x8+x9+x10)/5
    sma2=average(10 cells)=sum(10 cells)/10=(x1+x2+...+x9+x10)/10
    sma1=sma2 --> (x6+x7+...+x10)/5=(x1+x2+...+x10)/10 --> Solve this equation for x10. Then place this formula into B57.
    Do you mind telling more about the Solver?

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

    Re: Looking for the fourth point value in y=ax+b

    Microsoft's introductory file (there should be a similar help file in your Excel installation) https://support.office.com/en-us/art...d-078f96d1652c

    The introductory page from the programmer's of Excel's Solver: http://www.solver.com/excel-solver-help

    Since Solver's default algorithm is a Newton-Raphson type algorithm, I like to recommend a page like this (http://www.cs.utah.edu/~zachary/isp/...ot/Newton.html ) to understand how the NR algorithm works when finding roots. The problem you have defined is essentially a root finding problem.

  8. #8
    Forum Contributor
    Join Date
    09-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Looking for the fourth point value in y=ax+b

    Thank you for your help and guideline. Have a very happy day.

+ 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. Replies: 9
    Last Post: 04-14-2015, 11:20 AM
  2. Happy Fourth
    By 6StringJazzer in forum The Water Cooler
    Replies: 11
    Last Post: 07-06-2014, 04:14 PM
  3. Maths behind rotating rectangle around start point instead of default center point
    By Stanley91 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2014, 11:01 AM
  4. Replies: 0
    Last Post: 07-12-2012, 11:27 AM
  5. Replies: 2
    Last Post: 06-27-2011, 10:47 PM
  6. [SOLVED] MARK EVERY FOURTH ROW
    By lehigh46 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12:05 AM
  7. MARK EVERY FOURTH ROW
    By lehigh46 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-03-2005, 11:05 AM

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