+ Reply to Thread
Results 1 to 5 of 5

Solving for multiple variables

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    36

    Solving for multiple variables

    Hi All

    I have an issue solving for multiple variables. I would like to find out the distribution of litres (of fuel) per fuel station range. I currently have the total number of litres, and the average litres per range. Now I need to solve for the variables - number of fuel stations per range.

    ie. (a*200litres)+(b*300litres)+(c*380litres)=9000litres

    In the excel - the variable a should be deposited into cell A1, b into B1 and c into C1. The total litres is in D1.

    Any help will do.

    Thanks
    Steve

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Solving for multiple variables

    Pls attach a sample file with expected result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

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

    Re: Solving for multiple variables

    This sounds like the "start" of a "solve a system of equations" type problem that you should have learned about back in secondary school (refresher here: http://www.purplemath.com/modules/systlin1.htm ). It is only the start because you only have one equation with three unkowns. It seems like there should be more information or constraints about the three variables.

    Exactly as it is presented, you can randomly select values for any two of the variables, then solve for the third variable algebraically. For example, I choose 10 for a, 9 for b, and c=(9000-sumproduct({10,9},{200,300}))/380=11.3... I can similarly choose any other values for a and b and find the corresponding value for c.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,293

    Re: Solving for multiple variables

    To calculate the minimum number of barrels use application "Solver".
    Attached Files Attached Files

  5. #5
    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: Solving for multiple variables

    @ Czeslaw

    A minor improvement of you model?

    As this is a linear problem don't use excel’s default setting “GRG Nonlinear” try the “Simplex LP” instead. It works a bit faster.

    Alf

+ 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. Solving equation - using different variables
    By beauwandrey93 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-16-2015, 03:40 PM
  2. Solving an equation with eight variables
    By grauniadangel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2012, 12:17 PM
  3. Replies: 7
    Last Post: 10-16-2012, 10:57 AM
  4. Replies: 3
    Last Post: 06-10-2012, 11:02 AM
  5. Solving the best possible combination of 2 variables with a max limit
    By slummer15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2012, 09:42 PM
  6. Solving Multiple Trig Functions
    By jhoek in forum Excel General
    Replies: 0
    Last Post: 01-28-2011, 03:03 PM
  7. Solving for multiple algebraic variables
    By punkorganist in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-24-2006, 01:30 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