+ Reply to Thread
Results 1 to 7 of 7

Solving an equation

  1. #1
    Registered User
    Join Date
    11-04-2008
    Location
    USA
    Posts
    29

    Solving an equation

    Hello,

    I was wondering if there is a way to solve equations using XL.

    I have a number of equations that look like this:

    Y = 1.05007 + 0.948061 * Ln( ( X - 2.75394 ) / ( 3.07675 - X ) )

    I know the value of Y (eg 3.5) and I need to find the X value that will give me the known Y value.

    Any suggestions ?

    THANKS!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Solving an equation

    first rearrange it to show x=blah blah y
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Solving an equation

    If I did it correctly...

    Book1.xls
    Never use Merged Cells in Excel

  4. #4
    Registered User
    Join Date
    11-04-2008
    Location
    USA
    Posts
    29

    Re: Solving an equation

    Zbor,

    yeah, this is it ! man, you are fast... thank you very much !!

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

    Re: Solving an equation

    That's a very fussy function -- it is defined only over a very limited domain. I used a plot to choose constraints, and Solver to get the answer (X=3.0540998180399). You can do Tools > Solver to see the setup.
    Attached Files Attached Files
    Entia non sunt multiplicanda sine necessitate

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

    Re: Solving an equation

    You are right... It must be + and not - in B5-B1)/B2) +B3)/(1+

    ...and about domain check you can put something like:

    =IF(B7=B4;"Can't divide by 0";IF((B7-B3)/(B4-B7)<=0;"Wrong domain";"OK"))

    It looks two things:
    X can't be same as 3.07675 due to divide /0
    Number under LN must be greather than 0
    Last edited by zbor; 05-12-2009 at 01:38 PM.

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

    Re: Solving an equation

    Closed-form solution.
    Attached Files Attached Files

+ 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