Excel formula for converting Horizontal Cylindrical Tank in Gallons to Inches

terry7777

New Member
Joined
Jan 14, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I'm looking for help with an Excel formula for converting gallons stored in a Horizontal Cylindrical Tank to Depth in Inches.

I have successfully created a formula to go in the opposite direction, but now I need to work it the other way.

I have verified the formula with Tank Volume Calculator

However, I'm not able to reverse engineer the formula to work to solve for Depth in Inches

Can anyone help? It would be greatly appreciated.


Book1
ABCDEFGHIJKLM
1Horizontal Tank ChartSlury Tank Chart
2Length InchesDiameter InchesDepth Inches
3Total GallonsTotal Gallons134.69
4246.25101.254.5134.69Depth Inches
Slurry Tank Chart
Cell Formulas
RangeFormula
D4D4='DATA SHEET'!AD5
E4E4=LENGTH*(0.25*DIAMETER^2*ACOS(1-2*Depth/DIAMETER)-0.5*(DIAMETER-2*Depth)*SQRT(Depth*$C$4-Depth^2))/231
L3L3=E3
L4L4=D2
 
Just a little additional information in case you decide to use a Lookup.

What precision do you require?
I create a range 96*100 and replicated the formula increasing the height by 0.01
I converted the range to values and named the range for the Lookup.
T202501a.xlsm
ABCDEF
1Horizontal Tank ChartSlurry Tank Chart
2Length InchesDiameter InchesDepth Inches
3Total Gallons
4246.25101.254.50134.6922
5246.25101.2596.008,413.76
6
7
8
9Lookup
10GallonsDepth
110.450.1
128,413.7696
13400.009.39
7f
Cell Formulas
RangeFormula
E4:E5E4=B4*(0.25*C4^2*ACOS(1-2*D4/C4)-0.5*(C4-2*D4)*SQRT(D4*$C$4-D4^2))/231
D11:D13D11=LOOKUP(C11,Tank_A)
Named Ranges
NameRefers ToCells
Tank_A='7f'!$E$20:$F$9619D11:D13
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
For precision, I would prefer matching the measuring sticks we use, which are imperial, 1/16-inch. That's a lot of reference points. Four decimal places... I think I'll start small and increase the resolution over time. Thank you for this info, Dave! This is looking more and more like a viable option!
 
Upvote 0
CSmith, thank you for this! I have been looking for a way to get Excel to solve for fluid height rather than volume/gallons. So far, everything that works has agreed perfectly with the volume calculator and charts I have been using.

I am * this close * to getting the fluid height calculation to work, but I need your help. When I enter the formulas for J4 and M4, I get an error that I think is coming from the "fTheta" in both places (pls see screenshot). After much tinkering I have not been able to resolve this. What do I need to do? Thanks...

View attachment 121637
fTheta is UDF in the #3 post above.
 
Upvote 0
I revised the Lookup Range to increment by 1/16 inch; I initially used 1/100 inch.

T202501a.xlsm
ABCDE
1Horizontal Tank ChartSlurry Tank Chart
2Length InchesDiameter InchesDepth InchesTotal Gallons
3246.25101.2596.00008,413.76
4246.25101.2530.00002,128.62
5246.25101.250.06250.22
6
7
8
9Lookup
10DepthGallons
114.5000134.69
1296.00008,413.76
130.06250.22
1450.00004,224.09
159.3750398.94
7ff
Cell Formulas
RangeFormula
E3:E5E3=B3*(0.25*C3^2*ACOS(1-2*D3/C3)-0.5*(C3-2*D3)*SQRT(D3*$C$4-D3^2))/231
E11:E15E11=LOOKUP(D11,Tank_AA)
Named Ranges
NameRefers ToCells
'7ff'!Tank_AA='7ff'!$F$23:$G$1558E11:E15
 
Upvote 0

Forum statistics

Threads
1,225,969
Messages
6,188,109
Members
453,460
Latest member
Cjohnson3

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