+ Reply to Thread
Results 1 to 2 of 2

3 variable formula

  1. #1
    Registered User
    Join Date
    01-18-2011
    Location
    Copenhagen
    MS-Off Ver
    Excel 2003
    Posts
    7

    3 variable formula

    I thought this was going to be quite simple, but cannot seem to find a way to get this to work. I hope someone here is able to help out.

    What I am looking for is simply a formula to do this:

    Length A : ____
    Length B : ____
    Area : ____


    (calculating the area of a rectangel)

    Now, this is simplified for the example, and the formula is simply A*B=C. But basically I want to be able to input two out of the three variables, and the third should then be calculated, appearing in the proper cell... And if possible you could then keep changing in the variables and get the 'new' results...

    Is this even possible??

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,440

    Re: 3 variable formula

    Hi zballz and welcome to the forum,

    Lets think about this... You have formulas in each of youir three cells. You then put a number in one of these cells. This would then overwrite the formula with a number, but you want the formula for the next question.

    You should create 3 different rows for your problem.
    1. Given A and B Calculate Area C
    2 Given Area C and Length A calculate B
    3. etc

    The last cell is the only one that has the equation in it. The first two cells simply have values.

    I hope this makes sense.

    You could actually do what you want using VBA, with an Event Macro. It would understand what value's cell you put the last number in and calculate the two other values. It would use a different formula if you change one of the lengths vs the Area. I think the above 3 lines are a much easier answer than learning VBA, but we are here to help.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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