PO.PVT.SG.Oil.ByDefinition
Description
Calculates oil specific gravity from oil density, [dimensionless].
Syntax
=PO.PVT.SG.Oil.ByDefinition(Rho_oil)Parameters
| Parameter | Description |
|---|---|
| Rho_oil | Oil density at standard conditions, [lb/ft3]. |
SI Unit Version
Lambda Name
PO.PVT.SG.Oil.ByDefinition.SIFormula
=LAMBDA(Rho_oil, LET(
Rho_oil_lbft3, PO.UnitConverter(Rho_oil, "kg/m3", "lb/ft3"),
PO.PVT.SG.Oil.ByDefinition(Rho_oil_lbft3)))SI Parameters
| Parameter | Unit | Description |
|---|---|---|
Rho_oil |
kg/m3 | Oil density |
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.SG.Oil.ByDefinition.SI - In Refers to, paste the LAMBDA formula without the trailing invocation
(...) - Click OK
Now use =PO.PVT.SG.Oil.ByDefinition.SI(...) anywhere in your workbook.