PO.PVT.Bw.ByMcCain


Description

Calculates water formation volume factor using McCain correlation, [bbl/STB].

Syntax

=PO.PVT.Bw.ByMcCain(P, T_degF)

Parameters

Parameter Description
P Pressure, [psi].
T_degF Temperature, [degF].

SI Unit Version

Lambda Name PO.PVT.Bw.ByMcCain.SI
Formula
=LAMBDA(P, T_degC, LET( P_psi, PO.UnitConverter(P, "kPa", "psi"), T_degF, PO.UnitConverter(T_degC, "degC", "degF"), PO.PVT.Bw.ByMcCain(P_psi, T_degF)))
SI Parameters
Parameter Unit Description
P kPa Pressure
T_degC degC Temperature
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:

  1. Go to Formulas → Name Manager → New
  2. Enter a name, e.g. PO.PVT.Bw.ByMcCain.SI
  3. In Refers to, paste the LAMBDA formula without the trailing invocation (...)
  4. Click OK

Now use =PO.PVT.Bw.ByMcCain.SI(...) anywhere in your workbook.

Missing a formula? Suggest a New Formula

An unhandled error has occurred. Reload X