Building a Chemistry Calculator for mixing fluids

Keegan4123

New Member
Joined
Mar 30, 2022
Messages
29
Office Version
  1. 2016
Platform
  1. Windows
I am trying to build a calculator for a common task that calculates the required amount of fluid needed in a mixture to achieve the desired temperature.

Issue I have is the chemistry formula solves for 1 variable, but I need to solve for 2. There can only be 2 exact numbers given the variables, so not sure how to build the forumula.


Known Values
temp1 30.00
temp2 50.00
tempfinal 37.50
massttotal 36.00

Unknown Values
mass1 ??
mass2 ??
Total 36.00


Single Mass Formula m2 = m1 (T1 - Tf) / (Tf - T2)
or
m1 = m2 (T2 - Tf) / (Tf - T1)

Book1.xlsx
ABCDEFGHIJ
1Known Values
2t130.00Single Mass Formulam2 = m1 (T1 - Tf) / (Tf - T2)
3t250.00or
4tf37.50m1 = m2 (T2 - Tf) / (Tf - T1)
5mt36.00
6Calculated using above formulaM113.5
7Unknown ValuesM222.5
8m113.50
9m222.50
10Total36.00
11
Sheet1
Cell Formulas
RangeFormula
J6J6=B9*(B2-B4)/(B4-B3)
J7J7=B8*(B3-B4)/(B4-B2)
B10B10=SUM(B8:B9)
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
you can do it with goalseek
Map1
ABCD
1Known Values
2t130
3t250
4tf37,5
5mt36
6
7Unknown Values
8m122,5
9m213,50
10Total36
Blad1
Cell Formulas
RangeFormula
D9D9=SUMPRODUCT(B2:B3,B8:B9)/B5-B4
B9B9=+B5-B8
B10B10=SUM(B8:B9)
 
Upvote 0
@BSALV
That doesnt quite work. I should of posted this mini sheet instead.
I don't know m1 or m2. When I tried your formulas it comes up as incorrect numbers. (short by 1)
Book1.xlsx
ABCDEFGHIJ
1Known Values
2temp130.00Single Mass Formulam2 = m1 (T1 - Tf) / (Tf - T2)
3temp250.00or
4tempfinal37.50m1 = m2 (T2 - Tf) / (Tf - T1)
5masst36.00
6Calculated using above formula (what b8 and b9 should be)M113.5
7Unknown ValuesM222.5
8mass1
9mass2
10Total0.00
Sheet1
Cell Formulas
RangeFormula
B10B10=SUM(B8:B9)
 
Upvote 0
Try

31052022 Testes.xlsm
AB
1Known Values
2temp130
3temp250
4tempfinal37,5
5masst36
6
7Unknown Values
8mass122,5
9mass213,5
10Total36
Plan7
Cell Formulas
RangeFormula
B8B8=((B3-B4)/(B4-B2)*B5)/(1+(B3-B4)/(B4-B2))
B9B9=((B2-B4)/(B4-B3)*B5)/(1+(B2-B4)/(B4-B3))
B10B10=SUM(B8:B9)


M.
 
Upvote 0
It's a system with two unknowns (m1 and m2) and two equations

m1 = m2 (T2 - Tf) / (Tf - T1)
m1+m2=B5

Where
(T2-Tf)/(Tf-T1) = (50-37,5)/(37,5-30) = 1,666667
B5 = 36
m2=36-m1

So
m1= (36-m1)*1,666667
2,666667m1 = 36x1,666667
2,666667m1 = 60
m1 = 22,5

M.
 
Upvote 0
Map1
ABCDEFGHIJ
1Known Values
2t130Single Mass Formulam2 = m1 (T1 - Tf) / (Tf - T2)
3t250or
4tf37,5m1 = m2 (T2 - Tf) / (Tf - T1)
5mt36
6Calculated using above formulaM122,5
7Unknown ValuesM213,5
8m113.5M36
9m222.5T37,5
10Total#NAAM?
11
Blad1
Cell Formulas
RangeFormula
J6J6=+B5*(B4-B3)/(B2-B3)
J7J7=+B5-J6
J8,B10J8=SUM(J6:J7)
J9J9=SUMPRODUCT(B2:B3,J6:J7)/SUM(J6:J7)
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,812
Members
449,048
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top