+ Reply to Thread
Results 1 to 5 of 5

Need help with complex formula!

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Philadelphia, Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    0

    Need help with complex formula!

    I need an excel formula (possibly two formulas) that calculates the following scenario. The only way I have been able to achieve a result so far is by using mental trial and error - I would like to automate the process if possible.
    It involves 2 starting values which will be the inputs:
    Starting Value 1: 30
    Starting Value 2: 24

    Those values are then added (24+30=54) to generate the MAX value. In this case 54.

    I then must transform these values using a ratio which will also be an input.
    In this case lets assume a ratio of 2:1 where:

    Ending Value 1 = 2x ending value 2
    Ending Value 2 = 1/2 ending value 1

    ...and the sum of ending value 1 & 2 = Max value (54)

    In this case the solution is:
    Ending Value 1: 36
    Ending Value 2: 18

    I figured this out simply using trial and error and I would ultimately like to automate the process so that no matter what the inputs (starting values and the ratio) are, it will calculate the ending values.

    Any help either in excel or just mathematically would be great! Thank you!

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Need help with complex formula!

    You got two equations and two unknown.

    I X + Y = 54

    II X = 2Y so substituting X with Y in equation I you get 2Y + Y = 54

    i.e. Y = 54/3 i.e. 18

    and since X = 2Y X = 2*18 = 36

    Alf

  3. #3
    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: Need help with complex formula!

    Please take a few minutes to read the forum rules about cross-posting, both here and there.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Need help with complex formula!

    This is simple unless I am missing something.

    value 1 = 30 but will change

    value 2 = 24 but will change

    value 3 = value 1 + value 2

    new value 1 = 2 * value3 / 3
    new value 2 = value3 / 3

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need help with complex formula!

    bcoluc1,

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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