How does one enter in two variables, both of which have to corrected, to get an answer?

timcumming11291

New Member
Joined
Jun 23, 2014
Messages
3
Hello,
I am attempting to speed up the process by which we calculate weight percent of sulphuric acid based off specific gravity and temperature.
The issue I am having is, the values given in the charts we have are not exact, therefore we have a hand-written equation that is tried-and-true method of determining the actual weight percent. However, it takes valuable time away from productivity, and since we have Excel, we might as well get our money's worth.
I will attempt to re-create the workbook I have now, but the HTML maker is down at the moment.

Below is just an excerpt, the workbook itself is roughly 500 rows.
I have placed in the more relevant weight percent area that I am interested in.

Specific GravityWt %TempCorrectionDataCorrectedActual
1.394249.47800.008ISpG1.39921.3842
1.395649.61820.008IITemp6098
1.396949.75840.009IIIwt %49.987
1.398349.89860.010Relevant Info
1.399650.03880.011ASpG Low1.3983
1.401050.17900.012BSpG High1.3996
1.402350.31920.012Cwt % Low49.89
1.403750.45940.013Dwt % High50.03
1.405050.59960.014StepSolution
1I - A0.009
2B - A0.0013
3I - A/B - A0.692308
4D -C0.14
5(3) * (4)0.0969231
6C + (5)49.987

<tbody>
</tbody>


The equation used for determining weight percent is dependent upon specific gravity and temperature, as stated above.
All cell references will be relevant to the above chart.
Columns A and B are data from a chart on sulphuric acid data when it is at a temperature of 60 F.
Columns C and D are data from a chart on specific gravity correction dependent upon temperature of the sulphuric acid.
Column E is for simplicity of understanding Column F.
Column F is the data as well as the equation for determining wt %.
Column G is the numerical data.
Golumn H is the data obtained from a sample.

To get the value in G2, one must reference cell H2 and H3. Then, using Columns C and D, find the corrected specific gravity.
To get the answer in F16, one must follow steps 1-6, which uses the specific gravity and weight percent surrounding the data in question.

F3 must remain at 60 because the data in Columns A and B reference sulphuric acid at 60 F.

As for the moment, we do all of this by-hand. It is simple enough, but time-consuming.
The goal is simple, be able to put the information in cell H2 and H3, and have the data in F16 populate automatically and correctly.

I have looked into VLookup tables and thought they would work, however, they do not seem to fit my application.

Any help anyone can provide would be absolutely fantastic.

Thanks so much,
Tim
 
Last edited:

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
You should be able to plug
Code:
=H2+LOOKUP(H3,$C$2:$D$11)
in for your G2 formula (though your table doesn't go up to 98, I'm assuming it is the +0.015 difference). I'm not sure how you're calculating the Wt% since the exact SpG is not in the table in A:B and it is not a simple ratio of SpG to Wt%. G3 can just be 60, since you'll always be adjusting it to that (unless the % or # change from the 98 drives the Wt%).
 
Upvote 0
BJungeim,
I appreciate the Lookup, that helped solve the problem of correcting the SpG to the 60 reference.
And I appologise about the error I made not including the correction for 98 deg F.

The next part of my question, however, remains unanswered.
The calculation for weight percent is lined out in cells E11:G16.
Weight percent calculation
Step 1: You take the corrected specific gravity and subtract from that the SpG directly below that value (Column A).
Step 2: Then subtract the SpG value directly above the corrected SpG from the value directly below.
Step 3: Then divide step 1 by step 2.
Step 4: Then, you take the difference in the weight percents for the SpG values surrounding the corrected SpG.
Step 5: Multiply the value from Step 3 by value in step 4.
Step 6: Add the value from step 5 to the weight percent of the lower SpG (Columns A and B).

The relation between SpG and wt % is not a straight line, otherwise a simple equation would suffice and eliminate the need for tedious scratch work.
Once we get a corrected value for SpG, we will no longer need to worry about temperature.

The SpG and wt % chart (in full) can be found here, if anyone is interested in seeing the source of our reference data.

The exact SpG will very rarely be in the chart we have, which is why we have the tedious calculation we have to do every time we get a sample, hence my attempt to speed up the process.


Since the Lookup calculation worked for correcting the SpG needed, does anyone know of a way to have A, B, C, and D autopopulate with the SpG Low, High, wt % Low, High when entering a value into H2 and H3?

Thanks so much already!
 
Upvote 0
I apologize, I missed completely that the A-D sections were in the charts.

G6
Code:
=VLOOKUP(G2,$A$2:$A$10,1)
G7
Code:
=INDEX($A$2:$A$10,MATCH(G6,$A$2:$A$10,0)+1)
G8
Code:
=VLOOKUP(G6,$A$2:$B$10,2,0)
G9
Code:
=VLOOKUP(G7,$A$2:$B$10,2,0)

Should get you what you need.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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