PO.PVT.Bg.ByDefinition
Description
Calculates gas formation volume factor, [rcf/scf].
Syntax
=PO.PVT.Bg.ByDefinition(P, T_degR, Z)Parameters
| Parameter | Description |
|---|---|
| P | Pressure, [psi]. |
| T_degR | Temperature, [degR]. |
| Z | Gas compressibility factor (Z), [dimensionless]. |
SI Unit Version
Lambda Name
PO.PVT.Bg.ByDefinition.SIFormula
=LAMBDA(P, T_K, Z, LET(
P_psi, PO.UnitConverter(P, "kPa", "psi"),
T_degR, PO.UnitConverter(T_K, "degK", "degR"),
PO.PVT.Bg.ByDefinition(P_psi, T_degR, Z)))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
P |
kPa | Pressure |
T_K |
degK | Temperature |
Z |
- | Gas compressibility factor |
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.PVT.Bg.ByDefinition.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.PVT.Bg.ByDefinition.SI(...) anywhere in your workbook.