PO.ESP.Head.PressureAtDepth
Description
Calculates pressure at depth given surface pressure, [psi].
Syntax
=PO.ESP.Head.PressureAtDepth(P_surface, TVD, SG)Parameters
| Parameter | Description |
|---|---|
| P_surface | Surface pressure, [psi]. |
| TVD | True vertical depth, [ft]. |
| SG | Fluid specific gravity, [dimensionless]. |
SI Unit Version
Lambda Name
PO.ESP.Head.PressureAtDepth.SIFormula
=LAMBDA(P_surface, TVD, SG, LET(
P_surface_psi, PO.UnitConverter(P_surface, "kPa", "psi"),
TVD_ft, PO.UnitConverter(TVD, "m", "ft"),
result_psi, PO.ESP.Head.PressureAtDepth(P_surface_psi, TVD_ft, SG),
PO.UnitConverter(result_psi, "psi", "kPa")))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
P_surface |
kPa | Surface pressure, [kPa] |
TVD |
m | True vertical depth, [m] |
SG |
- | Fluid specific gravity, [dimensionless] |
How to save as a reusable Excel function
LAMBDA is a built-in Excel feature (Microsoft 365) that lets you create custom functions without VBA. The formula above works as-is when pasted into a cell.
To save a LAMBDA as a reusable named function:
- Go to Formulas → Name Manager → New
- Enter a name, e.g.
PO.ESP.Head.PressureAtDepth.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.ESP.Head.PressureAtDepth.SI(...) anywhere in your workbook.