+ Reply to Thread
Results 1 to 11 of 11

Algebra problem with two variables

Hybrid View

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    Northern Wisconsin
    MS-Off Ver
    Office 365 Business
    Posts
    5

    Algebra problem with two variables

    Hi, I'm a new member and working on a project at work and not coming up with an answer.
    We mix two products together with different known densities.
    An example is the 2 individual ingredient densities are 48 and 70.
    After they are mixed the known total density equals an example of 52.
    My question is:
    I need a formula to figure out how many pounds of each density material do I need to get to the total mixed density of 52.
    The total pounds of both ingredients must equal 2000 lbs.
    I have the answer by way of trial and error.
    The answer is 1636 lbs of 48 lb material and 364 lbs of 70 lb material.
    This gives me
    1636x48=78528
    364x70=25480
    The 1636 + 364 = 2000 (constant)
    Add 78528 + 25480 = 104008 /2000 = 52.004 total density
    I need a formula where the (2) individual and mixed densities are known and the 2000 lb limit is constant and will tell me the ingredient totals.
    Thank you very much for any help you can provide!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Algebra problem with two variables

    Like this..
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    02-22-2012
    Location
    Northern Wisconsin
    MS-Off Ver
    Office 365 Business
    Posts
    5

    Re: Algebra problem with two variables

    Thank you Ace_XL so much.
    Exactly what I needed!

  4. #4
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Algebra problem with two variables

    Ace, if you play around with that one, the final density doesn't = 52.

    I changed the density of Material A and came out with a density of 58 as per OP's calculations in his post.
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Algebra problem with two variables

    (48x+70x)÷2000 = 52

    118x = 104000

    x = 881.3559

    (48 density x 881.3559 lbs) + (70 density x 881.3559 lbs) = 104,000 lbs ÷ 2000 = 52 density


    With the limited information, there's technically an infinite number of solutions; mine only shows an equal parts solution.

    The missing variable is volume. If we knew the capacity, we could nail down something a little more concrete.
    Last edited by daffodil11; 10-29-2013 at 05:14 PM.

  6. #6
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Algebra problem with two variables

    Quote Originally Posted by daffodil11 View Post
    (48x+70x)÷2000 = 52

    118x = 104000

    x = 881.3559

    (48 density x 881.3559 lbs) + (70 density x 881.3559 lbs) = 104,000 lbs ÷ 2000 = 52 density


    With the limited information, there's technically an infinite number of solutions; mine only shows an equal parts solution.

    The missing variable is volume. If we knew the capacity, we could nail down something a little more concrete.


    Yeah, but that's the problem he's encountering... He's given two materials, of which he knows the density of the item but not the volume... I think this might best be figured out with a macro to do the "Easter Egg" work for him.

  7. #7
    Registered User
    Join Date
    02-22-2012
    Location
    Northern Wisconsin
    MS-Off Ver
    Office 365 Business
    Posts
    5

    Re: Algebra problem with two variables

    Quote Originally Posted by daffodil11 View Post
    (48x+70x)÷2000 = 52

    118x = 104000

    x = 881.3559

    (48 density x 881.3559 lbs) + (70 density x 881.3559 lbs) = 104,000 lbs ÷ 2000 = 52 density


    With the limited information, there's technically an infinite number of solutions; mine only shows an equal parts solution.

    The missing variable is volume. If we knew the capacity, we could nail down something a little more concrete.
    Both densities can't be 881.3559, the two added together must total 2000 lbs

  8. #8
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Algebra problem with two variables

    Well gosh. I just re-read the OP and things are making a lot more sense.

    Ace's proportionality works great.

    Last edited by daffodil11; 10-29-2013 at 05:40 PM.

  9. #9
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Algebra problem with two variables

    Quote Originally Posted by tbmac61 View Post
    I need a formula where the (2) individual and mixed densities are known and the 2000 lb limit is constant and will tell me the ingredient totals.
    Thank you very much for any help you can provide!
    I was reading this part as the material density may change, but he knows the density of the item he'll be mixing..

    i.e... Right now he's mixing two items with the density of 48 and 70, next batch he has to mix will have different densities but the densities will be known, such as 40 and 65. So he needs a formule to put in the new densities and then have it calculate the volume of each material he needs to reach the magic number of 52.

    That's how I was reading his post.

    OP, let me know if I'm wrong on this.

    Either way, this was the fix I had... Just plug in the density of the two materials (since I thought they were known but may change between the materials) and easter egg it.

    This macro also allows the changing of the max volume and density goal.
    Attached Files Attached Files
    Last edited by vamosj; 10-29-2013 at 05:58 PM.

  10. #10
    Registered User
    Join Date
    02-22-2012
    Location
    Northern Wisconsin
    MS-Off Ver
    Office 365 Business
    Posts
    5

    Re: Algebra problem with two variables

    Quote Originally Posted by vamosj View Post
    I was reading this part as the material density may change, but he knows the density of the item he'll be mixing..

    i.e... Right now he's mixing two items with the density of 48 and 70, next batch he has to mix will have different densities but the densities will be known, such as 40 and 65. So he needs a formule to put in the new densities and then have it calculate the volume of each material he needs to reach the magic number of 52.

    That's how I was reading his post.

    OP, let me know if I'm wrong on this.

    Either way, this was the fix I had... Just plug in the density of the two materials (since I thought they were known but may change between the materials) and easter egg it.

    This macro also allows the changing of the max volume and density goal.
    Thank you very much! It works great!

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

    Re: Algebra problem with two variables

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help 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)

Similar Threads

  1. Problem using variables
    By mike703 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2010, 02:56 PM
  2. Problem with variables
    By Sam I Am in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2008, 03:52 AM
  3. Problem with references/variables
    By Mats Samson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-08-2005, 01:05 PM
  4. Webqueries and variables problem
    By dazman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2005, 04:05 PM
  5. Webqueries and variables problem
    By dazman in forum Excel General
    Replies: 0
    Last Post: 08-04-2005, 05:31 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