{
  "version": 1,
  "id": "po.wb.sf.gathering-diagram",
  "name": "Surface Gathering Diagram — Generated from a Network Table, with Live Labels",
  "sheets": [
    {
      "name": "Guide",
      "cells": [
        {
          "ref": "A1",
          "value": "Surface gathering diagram — drawn from a network table, with live labels"
        },
        {
          "ref": "A3",
          "value": "What this is"
        },
        {
          "ref": "A4",
          "value": "A diagram of a surface gathering system: wells, chokes, a manifold, separators and the outlets they feed, with flowlines between them. It was generated from a table — the Network sheet — and the numbers on it stay live: the text in the manifold, the separators, the outlets and above each choke is linked to a cell that calculates from the Inputs, and the details of each well are cells beside its wellhead. Every formula is plain Excel, so no add-in is needed."
        },
        {
          "ref": "A6",
          "value": "Using it"
        },
        {
          "ref": "A7",
          "value": "Inputs — each well's wellhead pressure and temperature, rates, choke size and route, the manifold pressure and each separator's pressure. Change one and the labels on the Gathering sheet change. Blue cells on a yellow background are the ones to edit; checks at the bottom flag inputs that cannot be a gathering system, in red with the fix spelled out, and the Gathering sheet says so on its third line."
        },
        {
          "ref": "A8",
          "value": "Gathering — the diagram. Route a well to the other separator and the separators' rates and the outlets' rates move with it."
        },
        {
          "ref": "A9",
          "value": "Network — the table the diagram came from: a row for every piece of equipment and for every connector, and the Label formula each piece of equipment shows. Shapes are named after their rows (a choke's label box after the choke), so the Selection Pane lists them the way the table does."
        },
        {
          "ref": "A11",
          "value": "What is live and what is fixed"
        },
        {
          "ref": "A12",
          "value": "Live: every number — the labels, the per-well cells and the status line. Fixed: the pipework and the layout. The diagram is drawn when the workbook is generated, from the table, and a workbook cannot redraw itself: to add a well or a separator, or to change what feeds an outlet, change the table and generate the workbook again. The layout rule is a column per stage — wells, chokes, manifold, separators, outlets — with each shape at the mean height of what feeds it, so a well, its choke and the next shape stay on one straight line wherever they can."
        },
        {
          "ref": "A14",
          "value": "Moving things"
        },
        {
          "ref": "A15",
          "value": "Drag a shape and its flowlines stay attached: they are glued to the shapes, not drawn between two points, and an elbow re-routes as the shape moves. Dragging does not change the table, and a regenerated workbook starts from the layout rule again."
        },
        {
          "ref": "A17",
          "value": "What it does not do"
        },
        {
          "ref": "A18",
          "value": "It does not calculate the network: the pressure drop across a choke is the wellhead pressure less the manifold pressure, and the rates are what you enter — there is no hydraulics here. It does not move a flowline when the table changes, and it has one manifold. It is a diagram with live labels, not a simulator."
        }
      ]
    },
    {
      "name": "Inputs",
      "cells": [
        {
          "ref": "A1",
          "value": "Inputs"
        },
        {
          "ref": "A2",
          "value": "Blue cells on a yellow background drive the numbers on the Gathering sheet: the labels in the shapes and beside the wellheads follow. Field units. The well and separator names, and the route each separator serves, come from the Network table the diagram was generated from; they are not inputs, because changing them would change the pipework. A well's own route is an input."
        },
        {
          "ref": "A4",
          "value": "Wells"
        },
        {
          "ref": "A5",
          "value": "Well"
        },
        {
          "ref": "B5",
          "value": "WHP (psi)"
        },
        {
          "ref": "C5",
          "value": "WHT (°F)"
        },
        {
          "ref": "D5",
          "value": "Oil (bbl/d)"
        },
        {
          "ref": "E5",
          "value": "Water (bbl/d)"
        },
        {
          "ref": "F5",
          "value": "Gas (Mscf/d)"
        },
        {
          "ref": "G5",
          "value": "Choke (1/64 in)"
        },
        {
          "ref": "H5",
          "value": "Route"
        },
        {
          "ref": "A6",
          "value": "W-1"
        },
        {
          "ref": "B6",
          "value": 1250,
          "format": "#,##0"
        },
        {
          "ref": "C6",
          "value": 148,
          "format": "0"
        },
        {
          "ref": "D6",
          "value": 1850,
          "format": "#,##0"
        },
        {
          "ref": "E6",
          "value": 420,
          "format": "#,##0"
        },
        {
          "ref": "F6",
          "value": 2100,
          "format": "#,##0"
        },
        {
          "ref": "G6",
          "value": 24,
          "format": "0"
        },
        {
          "ref": "H6",
          "value": "Production"
        },
        {
          "ref": "A7",
          "value": "W-2"
        },
        {
          "ref": "B7",
          "value": 980,
          "format": "#,##0"
        },
        {
          "ref": "C7",
          "value": 141,
          "format": "0"
        },
        {
          "ref": "D7",
          "value": 1320,
          "format": "#,##0"
        },
        {
          "ref": "E7",
          "value": 910,
          "format": "#,##0"
        },
        {
          "ref": "F7",
          "value": 1450,
          "format": "#,##0"
        },
        {
          "ref": "G7",
          "value": 28,
          "format": "0"
        },
        {
          "ref": "H7",
          "value": "Production"
        },
        {
          "ref": "A8",
          "value": "W-3"
        },
        {
          "ref": "B8",
          "value": 1510,
          "format": "#,##0"
        },
        {
          "ref": "C8",
          "value": 155,
          "format": "0"
        },
        {
          "ref": "D8",
          "value": 2240,
          "format": "#,##0"
        },
        {
          "ref": "E8",
          "value": 180,
          "format": "#,##0"
        },
        {
          "ref": "F8",
          "value": 3050,
          "format": "#,##0"
        },
        {
          "ref": "G8",
          "value": 20,
          "format": "0"
        },
        {
          "ref": "H8",
          "value": "Test"
        },
        {
          "ref": "A9",
          "value": "W-4"
        },
        {
          "ref": "B9",
          "value": 760,
          "format": "#,##0"
        },
        {
          "ref": "C9",
          "value": 133,
          "format": "0"
        },
        {
          "ref": "D9",
          "value": 640,
          "format": "#,##0"
        },
        {
          "ref": "E9",
          "value": 1380,
          "format": "#,##0"
        },
        {
          "ref": "F9",
          "value": 610,
          "format": "#,##0"
        },
        {
          "ref": "G9",
          "value": 32,
          "format": "0"
        },
        {
          "ref": "H9",
          "value": "Production"
        },
        {
          "ref": "A10",
          "value": "Route: the separator a well is lined up to — Production or Test. Each separator is summed over the wells routed to it."
        },
        {
          "ref": "A12",
          "value": "Manifold and separators"
        },
        {
          "ref": "A13",
          "value": "Manifold pressure"
        },
        {
          "ref": "B13",
          "value": 420,
          "format": "#,##0"
        },
        {
          "ref": "C13",
          "value": "psi"
        },
        {
          "ref": "A15",
          "value": "Separator"
        },
        {
          "ref": "B15",
          "value": "Route"
        },
        {
          "ref": "C15",
          "value": "Pressure (psi)"
        },
        {
          "ref": "A16",
          "value": "Production separator"
        },
        {
          "ref": "B16",
          "value": "Production"
        },
        {
          "ref": "C16",
          "value": 250,
          "format": "#,##0"
        },
        {
          "ref": "A17",
          "value": "Test separator"
        },
        {
          "ref": "B17",
          "value": "Test"
        },
        {
          "ref": "C17",
          "value": 265,
          "format": "#,##0"
        },
        {
          "ref": "A19",
          "value": "Input checks"
        },
        {
          "ref": "A20",
          "value": "Checks failing"
        },
        {
          "ref": "B20",
          "formula": "=COUNTIF(B23:B28,\"CHECK\")",
          "cached": 0
        },
        {
          "ref": "A22",
          "value": "Check"
        },
        {
          "ref": "B22",
          "value": "Status"
        },
        {
          "ref": "C22",
          "value": "What to fix"
        },
        {
          "ref": "A23",
          "value": "Every input cell holds a number"
        },
        {
          "ref": "B23",
          "formula": "=IF(IFERROR(COUNT(GS_WHP,GS_WHT,GS_Oil,GS_Water,GS_Gas,GS_Choke,GS_SepP,GS_Pman)=(6*ROWS(GS_WHP))+ROWS(GS_SepP)+1,FALSE),\"OK\",\"CHECK\")",
          "cached": "OK"
        },
        {
          "ref": "C23",
          "formula": "=IF(B23=\"OK\",\"\",\"A blank, text or an error sits among the wellhead pressures and temperatures, rates, choke sizes and pressures: each must be a number.\")",
          "cached": ""
        },
        {
          "ref": "A24",
          "value": "Every well is routed to a separator"
        },
        {
          "ref": "B24",
          "formula": "=IF(IFERROR(SUMPRODUCT(--ISNA(MATCH(GS_Route,GS_SepRoute,0)))=0,FALSE),\"OK\",\"CHECK\")",
          "cached": "OK"
        },
        {
          "ref": "C24",
          "formula": "=IF(B24=\"OK\",\"\",\"Pick a route from the list for each well: only the routes a separator serves exist.\")",
          "cached": ""
        },
        {
          "ref": "A25",
          "value": "Choke sizes are positive"
        },
        {
          "ref": "B25",
          "formula": "=IF(IFERROR(MIN(GS_Choke)>0,FALSE),\"OK\",\"CHECK\")",
          "cached": "OK"
        },
        {
          "ref": "C25",
          "formula": "=IF(B25=\"OK\",\"\",\"A choke size is a positive number of 64ths of an inch.\")",
          "cached": ""
        },
        {
          "ref": "A26",
          "value": "Rates are not negative"
        },
        {
          "ref": "B26",
          "formula": "=IF(IFERROR(MIN(GS_Oil,GS_Water,GS_Gas)>=0,FALSE),\"OK\",\"CHECK\")",
          "cached": "OK"
        },
        {
          "ref": "C26",
          "formula": "=IF(B26=\"OK\",\"\",\"Oil, water and gas rates cannot be below zero.\")",
          "cached": ""
        },
        {
          "ref": "A27",
          "value": "Every wellhead pressure is above the manifold pressure"
        },
        {
          "ref": "B27",
          "formula": "=IF(IFERROR(MIN(GS_WHP)>GS_Pman,FALSE),\"OK\",\"CHECK\")",
          "cached": "OK"
        },
        {
          "ref": "C27",
          "formula": "=IF(B27=\"OK\",\"\",\"A well flows to the manifold only if its wellhead pressure is higher: the choke's pressure drop would be zero or negative.\")",
          "cached": ""
        },
        {
          "ref": "A28",
          "value": "The manifold is above every separator"
        },
        {
          "ref": "B28",
          "formula": "=IF(IFERROR(GS_Pman>MAX(GS_SepP),FALSE),\"OK\",\"CHECK\")",
          "cached": "OK"
        },
        {
          "ref": "C28",
          "formula": "=IF(B28=\"OK\",\"\",\"The manifold must be at a higher pressure than the separators it feeds.\")",
          "cached": ""
        }
      ]
    },
    {
      "name": "Gathering",
      "cells": [
        {
          "ref": "A1",
          "value": "Surface gathering system"
        },
        {
          "ref": "A2",
          "value": "Generated from the Network sheet. The labels follow the Inputs; the pipework does not. Drag a shape and its flowlines stay attached."
        },
        {
          "ref": "A3",
          "formula": "=IF(GS_Problems=0,\"Inputs consistent.\",\"CHECK: \"&GS_Problems&\" input check(s) failing — see the Inputs sheet.\")",
          "cached": "Inputs consistent."
        },
        {
          "ref": "A5",
          "formula": "=INDEX(GS_Well,1)&\"  →  \"&INDEX(GS_Route,1)",
          "cached": "W-1  →  Production"
        },
        {
          "ref": "A6",
          "formula": "=\"WHP \"&FIXED(INDEX(GS_WHP,1),0)&\" psi · \"&FIXED(INDEX(GS_WHT,1),0)&\" °F\"",
          "cached": "WHP 1,250 psi · 148 °F"
        },
        {
          "ref": "A7",
          "formula": "=FIXED(INDEX(GS_Oil,1),0)&\" oil · \"&FIXED(INDEX(GS_Water,1),0)&\" water\"",
          "cached": "1,850 oil · 420 water"
        },
        {
          "ref": "A11",
          "formula": "=INDEX(GS_Well,2)&\"  →  \"&INDEX(GS_Route,2)",
          "cached": "W-2  →  Production"
        },
        {
          "ref": "A12",
          "formula": "=\"WHP \"&FIXED(INDEX(GS_WHP,2),0)&\" psi · \"&FIXED(INDEX(GS_WHT,2),0)&\" °F\"",
          "cached": "WHP 980 psi · 141 °F"
        },
        {
          "ref": "A13",
          "formula": "=FIXED(INDEX(GS_Oil,2),0)&\" oil · \"&FIXED(INDEX(GS_Water,2),0)&\" water\"",
          "cached": "1,320 oil · 910 water"
        },
        {
          "ref": "A17",
          "formula": "=INDEX(GS_Well,3)&\"  →  \"&INDEX(GS_Route,3)",
          "cached": "W-3  →  Test"
        },
        {
          "ref": "A18",
          "formula": "=\"WHP \"&FIXED(INDEX(GS_WHP,3),0)&\" psi · \"&FIXED(INDEX(GS_WHT,3),0)&\" °F\"",
          "cached": "WHP 1,510 psi · 155 °F"
        },
        {
          "ref": "A19",
          "formula": "=FIXED(INDEX(GS_Oil,3),0)&\" oil · \"&FIXED(INDEX(GS_Water,3),0)&\" water\"",
          "cached": "2,240 oil · 180 water"
        },
        {
          "ref": "A23",
          "formula": "=INDEX(GS_Well,4)&\"  →  \"&INDEX(GS_Route,4)",
          "cached": "W-4  →  Production"
        },
        {
          "ref": "A24",
          "formula": "=\"WHP \"&FIXED(INDEX(GS_WHP,4),0)&\" psi · \"&FIXED(INDEX(GS_WHT,4),0)&\" °F\"",
          "cached": "WHP 760 psi · 133 °F"
        },
        {
          "ref": "A25",
          "formula": "=FIXED(INDEX(GS_Oil,4),0)&\" oil · \"&FIXED(INDEX(GS_Water,4),0)&\" water\"",
          "cached": "640 oil · 1,380 water"
        },
        {
          "ref": "A30",
          "value": "Streams"
        },
        {
          "ref": "B30",
          "value": "━━━━"
        },
        {
          "ref": "C30",
          "value": "well fluid"
        },
        {
          "ref": "D30",
          "value": "━━━━"
        },
        {
          "ref": "E30",
          "value": "oil"
        },
        {
          "ref": "F30",
          "value": "- - - -"
        },
        {
          "ref": "G30",
          "value": "gas"
        },
        {
          "ref": "H30",
          "value": "━━━━"
        },
        {
          "ref": "I30",
          "value": "water"
        },
        {
          "ref": "J30",
          "value": "━━━━"
        },
        {
          "ref": "K30",
          "value": "liquid"
        }
      ]
    },
    {
      "name": "Network",
      "cells": [
        {
          "ref": "A1",
          "value": "Network — the table the diagram was generated from"
        },
        {
          "ref": "A2",
          "value": "One row for every piece of equipment on the Gathering sheet and one for every connector (each choke also has a label box above it, named after it). The drawing was made from this table, so it cannot show a link that is not here. The pipework is fixed in the file: add a well or a separator to the table and generate the workbook again. The Label column is what each piece of equipment shows — a formula on the Inputs — and the shape's text is linked to it."
        },
        {
          "ref": "A4",
          "value": "Nodes — one per shape"
        },
        {
          "ref": "A5",
          "value": "ID"
        },
        {
          "ref": "B5",
          "value": "Kind"
        },
        {
          "ref": "C5",
          "value": "Name"
        },
        {
          "ref": "D5",
          "value": "Route"
        },
        {
          "ref": "E5",
          "value": "Unit"
        },
        {
          "ref": "F5",
          "value": "Stage"
        },
        {
          "ref": "G5",
          "value": "Shape"
        },
        {
          "ref": "H5",
          "value": "Label (the text the shape shows — live)"
        },
        {
          "ref": "A6",
          "value": "W-1"
        },
        {
          "ref": "B6",
          "value": "Well"
        },
        {
          "ref": "C6",
          "value": "W-1"
        },
        {
          "ref": "D6",
          "value": "Production"
        },
        {
          "ref": "F6",
          "value": 0
        },
        {
          "ref": "G6",
          "value": "Wellhead W-1"
        },
        {
          "ref": "H6",
          "value": "In cells beside the wellhead on the Gathering sheet."
        },
        {
          "ref": "A7",
          "value": "W-2"
        },
        {
          "ref": "B7",
          "value": "Well"
        },
        {
          "ref": "C7",
          "value": "W-2"
        },
        {
          "ref": "D7",
          "value": "Production"
        },
        {
          "ref": "F7",
          "value": 0
        },
        {
          "ref": "G7",
          "value": "Wellhead W-2"
        },
        {
          "ref": "H7",
          "value": "In cells beside the wellhead on the Gathering sheet."
        },
        {
          "ref": "A8",
          "value": "W-3"
        },
        {
          "ref": "B8",
          "value": "Well"
        },
        {
          "ref": "C8",
          "value": "W-3"
        },
        {
          "ref": "D8",
          "value": "Test"
        },
        {
          "ref": "F8",
          "value": 0
        },
        {
          "ref": "G8",
          "value": "Wellhead W-3"
        },
        {
          "ref": "H8",
          "value": "In cells beside the wellhead on the Gathering sheet."
        },
        {
          "ref": "A9",
          "value": "W-4"
        },
        {
          "ref": "B9",
          "value": "Well"
        },
        {
          "ref": "C9",
          "value": "W-4"
        },
        {
          "ref": "D9",
          "value": "Production"
        },
        {
          "ref": "F9",
          "value": 0
        },
        {
          "ref": "G9",
          "value": "Wellhead W-4"
        },
        {
          "ref": "H9",
          "value": "In cells beside the wellhead on the Gathering sheet."
        },
        {
          "ref": "A10",
          "value": "CK W-1"
        },
        {
          "ref": "B10",
          "value": "Choke"
        },
        {
          "ref": "C10",
          "value": "Choke W-1"
        },
        {
          "ref": "F10",
          "value": 1
        },
        {
          "ref": "G10",
          "value": "Choke W-1"
        },
        {
          "ref": "H10",
          "formula": "=\"Ck \"&FIXED(INDEX(GS_Choke,1),0)&\"/64 · ΔP \"&FIXED(INDEX(GS_WHP,1)-GS_Pman,0)&\" psi\"",
          "cached": "Ck 24/64 · ΔP 830 psi"
        },
        {
          "ref": "A11",
          "value": "CK W-2"
        },
        {
          "ref": "B11",
          "value": "Choke"
        },
        {
          "ref": "C11",
          "value": "Choke W-2"
        },
        {
          "ref": "F11",
          "value": 1
        },
        {
          "ref": "G11",
          "value": "Choke W-2"
        },
        {
          "ref": "H11",
          "formula": "=\"Ck \"&FIXED(INDEX(GS_Choke,2),0)&\"/64 · ΔP \"&FIXED(INDEX(GS_WHP,2)-GS_Pman,0)&\" psi\"",
          "cached": "Ck 28/64 · ΔP 560 psi"
        },
        {
          "ref": "A12",
          "value": "CK W-3"
        },
        {
          "ref": "B12",
          "value": "Choke"
        },
        {
          "ref": "C12",
          "value": "Choke W-3"
        },
        {
          "ref": "F12",
          "value": 1
        },
        {
          "ref": "G12",
          "value": "Choke W-3"
        },
        {
          "ref": "H12",
          "formula": "=\"Ck \"&FIXED(INDEX(GS_Choke,3),0)&\"/64 · ΔP \"&FIXED(INDEX(GS_WHP,3)-GS_Pman,0)&\" psi\"",
          "cached": "Ck 20/64 · ΔP 1,090 psi"
        },
        {
          "ref": "A13",
          "value": "CK W-4"
        },
        {
          "ref": "B13",
          "value": "Choke"
        },
        {
          "ref": "C13",
          "value": "Choke W-4"
        },
        {
          "ref": "F13",
          "value": 1
        },
        {
          "ref": "G13",
          "value": "Choke W-4"
        },
        {
          "ref": "H13",
          "formula": "=\"Ck \"&FIXED(INDEX(GS_Choke,4),0)&\"/64 · ΔP \"&FIXED(INDEX(GS_WHP,4)-GS_Pman,0)&\" psi\"",
          "cached": "Ck 32/64 · ΔP 340 psi"
        },
        {
          "ref": "A14",
          "value": "MAN"
        },
        {
          "ref": "B14",
          "value": "Manifold"
        },
        {
          "ref": "C14",
          "value": "Manifold"
        },
        {
          "ref": "F14",
          "value": 2
        },
        {
          "ref": "G14",
          "value": "Manifold"
        },
        {
          "ref": "H14",
          "formula": "=\"Manifold \"&FIXED(GS_Pman,0)&\" psi\"&CHAR(10)&COUNTIF(GS_Route,\"Production\")&\" production\"&\" · \"&COUNTIF(GS_Route,\"Test\")&\" test\"",
          "cached": "Manifold 420 psi\n3 production · 1 test"
        },
        {
          "ref": "A15",
          "value": "SEP-P"
        },
        {
          "ref": "B15",
          "value": "Separator"
        },
        {
          "ref": "C15",
          "value": "Production separator"
        },
        {
          "ref": "D15",
          "value": "Production"
        },
        {
          "ref": "F15",
          "value": 3
        },
        {
          "ref": "G15",
          "value": "Production separator"
        },
        {
          "ref": "H15",
          "formula": "=\"Production separator\"&CHAR(10)&FIXED(INDEX(GS_SepP,1),0)&\" psi · \"&FIXED(SUMIF(GS_Route,\"Production\",GS_Oil)+SUMIF(GS_Route,\"Production\",GS_Water),0)&\" bbl/d\"",
          "cached": "Production separator\n250 psi · 6,520 bbl/d"
        },
        {
          "ref": "A16",
          "value": "SEP-T"
        },
        {
          "ref": "B16",
          "value": "Separator"
        },
        {
          "ref": "C16",
          "value": "Test separator"
        },
        {
          "ref": "D16",
          "value": "Test"
        },
        {
          "ref": "F16",
          "value": 3
        },
        {
          "ref": "G16",
          "value": "Test separator"
        },
        {
          "ref": "H16",
          "formula": "=\"Test separator\"&CHAR(10)&FIXED(INDEX(GS_SepP,2),0)&\" psi · \"&FIXED(SUMIF(GS_Route,\"Test\",GS_Oil)+SUMIF(GS_Route,\"Test\",GS_Water),0)&\" bbl/d\"",
          "cached": "Test separator\n265 psi · 2,420 bbl/d"
        },
        {
          "ref": "A17",
          "value": "GAS"
        },
        {
          "ref": "B17",
          "value": "Outlet"
        },
        {
          "ref": "C17",
          "value": "Gas to compressor"
        },
        {
          "ref": "E17",
          "value": "Mscf/d"
        },
        {
          "ref": "F17",
          "value": 4
        },
        {
          "ref": "G17",
          "value": "Gas to compressor"
        },
        {
          "ref": "H17",
          "formula": "=\"Gas to compressor\"&CHAR(10)&FIXED(SUMIF(GS_Route,\"Production\",GS_Gas),0)&\" Mscf/d\"",
          "cached": "Gas to compressor\n4,160 Mscf/d"
        },
        {
          "ref": "A18",
          "value": "OIL"
        },
        {
          "ref": "B18",
          "value": "Outlet"
        },
        {
          "ref": "C18",
          "value": "Oil export pipeline"
        },
        {
          "ref": "E18",
          "value": "bbl/d"
        },
        {
          "ref": "F18",
          "value": 4
        },
        {
          "ref": "G18",
          "value": "Oil export pipeline"
        },
        {
          "ref": "H18",
          "formula": "=\"Oil export pipeline\"&CHAR(10)&FIXED(SUMIF(GS_Route,\"Production\",GS_Oil)+SUMIF(GS_Route,\"Test\",GS_Oil)+SUMIF(GS_Route,\"Test\",GS_Water),0)&\" bbl/d\"",
          "cached": "Oil export pipeline\n6,230 bbl/d"
        },
        {
          "ref": "A19",
          "value": "WATER"
        },
        {
          "ref": "B19",
          "value": "Outlet"
        },
        {
          "ref": "C19",
          "value": "Water disposal"
        },
        {
          "ref": "E19",
          "value": "bbl/d"
        },
        {
          "ref": "F19",
          "value": 4
        },
        {
          "ref": "G19",
          "value": "Water disposal"
        },
        {
          "ref": "H19",
          "formula": "=\"Water disposal\"&CHAR(10)&FIXED(SUMIF(GS_Route,\"Production\",GS_Water),0)&\" bbl/d\"",
          "cached": "Water disposal\n2,710 bbl/d"
        },
        {
          "ref": "A22",
          "value": "Links — one per connector"
        },
        {
          "ref": "A23",
          "value": "From"
        },
        {
          "ref": "B23",
          "value": "To"
        },
        {
          "ref": "C23",
          "value": "Stream"
        },
        {
          "ref": "G23",
          "value": "Connector (glued to both shapes)"
        },
        {
          "ref": "A24",
          "value": "W-1"
        },
        {
          "ref": "B24",
          "value": "CK W-1"
        },
        {
          "ref": "C24",
          "value": "flowline"
        },
        {
          "ref": "G24",
          "value": "Wellhead W-1 to Choke W-1"
        },
        {
          "ref": "A25",
          "value": "CK W-1"
        },
        {
          "ref": "B25",
          "value": "MAN"
        },
        {
          "ref": "C25",
          "value": "flowline"
        },
        {
          "ref": "G25",
          "value": "Choke W-1 to Manifold"
        },
        {
          "ref": "A26",
          "value": "W-2"
        },
        {
          "ref": "B26",
          "value": "CK W-2"
        },
        {
          "ref": "C26",
          "value": "flowline"
        },
        {
          "ref": "G26",
          "value": "Wellhead W-2 to Choke W-2"
        },
        {
          "ref": "A27",
          "value": "CK W-2"
        },
        {
          "ref": "B27",
          "value": "MAN"
        },
        {
          "ref": "C27",
          "value": "flowline"
        },
        {
          "ref": "G27",
          "value": "Choke W-2 to Manifold"
        },
        {
          "ref": "A28",
          "value": "W-3"
        },
        {
          "ref": "B28",
          "value": "CK W-3"
        },
        {
          "ref": "C28",
          "value": "flowline"
        },
        {
          "ref": "G28",
          "value": "Wellhead W-3 to Choke W-3"
        },
        {
          "ref": "A29",
          "value": "CK W-3"
        },
        {
          "ref": "B29",
          "value": "MAN"
        },
        {
          "ref": "C29",
          "value": "flowline"
        },
        {
          "ref": "G29",
          "value": "Choke W-3 to Manifold"
        },
        {
          "ref": "A30",
          "value": "W-4"
        },
        {
          "ref": "B30",
          "value": "CK W-4"
        },
        {
          "ref": "C30",
          "value": "flowline"
        },
        {
          "ref": "G30",
          "value": "Wellhead W-4 to Choke W-4"
        },
        {
          "ref": "A31",
          "value": "CK W-4"
        },
        {
          "ref": "B31",
          "value": "MAN"
        },
        {
          "ref": "C31",
          "value": "flowline"
        },
        {
          "ref": "G31",
          "value": "Choke W-4 to Manifold"
        },
        {
          "ref": "A32",
          "value": "MAN"
        },
        {
          "ref": "B32",
          "value": "SEP-P"
        },
        {
          "ref": "C32",
          "value": "flowline"
        },
        {
          "ref": "G32",
          "value": "Manifold to Production separator"
        },
        {
          "ref": "A33",
          "value": "MAN"
        },
        {
          "ref": "B33",
          "value": "SEP-T"
        },
        {
          "ref": "C33",
          "value": "flowline"
        },
        {
          "ref": "G33",
          "value": "Manifold to Test separator"
        },
        {
          "ref": "A34",
          "value": "SEP-P"
        },
        {
          "ref": "B34",
          "value": "GAS"
        },
        {
          "ref": "C34",
          "value": "gas"
        },
        {
          "ref": "G34",
          "value": "Production separator to Gas to compressor"
        },
        {
          "ref": "A35",
          "value": "SEP-P"
        },
        {
          "ref": "B35",
          "value": "OIL"
        },
        {
          "ref": "C35",
          "value": "oil"
        },
        {
          "ref": "G35",
          "value": "Production separator to Oil export pipeline"
        },
        {
          "ref": "A36",
          "value": "SEP-P"
        },
        {
          "ref": "B36",
          "value": "WATER"
        },
        {
          "ref": "C36",
          "value": "water"
        },
        {
          "ref": "G36",
          "value": "Production separator to Water disposal"
        },
        {
          "ref": "A37",
          "value": "SEP-T"
        },
        {
          "ref": "B37",
          "value": "OIL"
        },
        {
          "ref": "C37",
          "value": "liquid"
        },
        {
          "ref": "G37",
          "value": "Test separator to Oil export pipeline"
        }
      ]
    }
  ],
  "namedRanges": [
    {
      "name": "GS_Choke",
      "refersTo": "Inputs!$G$6:$G$9"
    },
    {
      "name": "GS_Gas",
      "refersTo": "Inputs!$F$6:$F$9"
    },
    {
      "name": "GS_Oil",
      "refersTo": "Inputs!$D$6:$D$9"
    },
    {
      "name": "GS_Pman",
      "refersTo": "Inputs!$B$13"
    },
    {
      "name": "GS_Problems",
      "refersTo": "Inputs!$B$20"
    },
    {
      "name": "GS_Route",
      "refersTo": "Inputs!$H$6:$H$9"
    },
    {
      "name": "GS_SepName",
      "refersTo": "Inputs!$A$16:$A$17"
    },
    {
      "name": "GS_SepP",
      "refersTo": "Inputs!$C$16:$C$17"
    },
    {
      "name": "GS_SepRoute",
      "refersTo": "Inputs!$B$16:$B$17"
    },
    {
      "name": "GS_WHP",
      "refersTo": "Inputs!$B$6:$B$9"
    },
    {
      "name": "GS_WHT",
      "refersTo": "Inputs!$C$6:$C$9"
    },
    {
      "name": "GS_Water",
      "refersTo": "Inputs!$E$6:$E$9"
    },
    {
      "name": "GS_Well",
      "refersTo": "Inputs!$A$6:$A$9"
    }
  ],
  "namedLambdas": [],
  "charts": [],
  "shapes": [
    {
      "sheet": "Gathering",
      "name": "Choke W-1",
      "preset": "diamond",
      "anchor": "E6",
      "endAnchor": "E7"
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-1 label",
      "preset": "rect",
      "anchor": "D4",
      "endAnchor": "F5",
      "text": "Ck 24/64 · ΔP 830 psi",
      "textLink": "Network!$H$10"
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-2",
      "preset": "diamond",
      "anchor": "E12",
      "endAnchor": "E13"
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-2 label",
      "preset": "rect",
      "anchor": "D10",
      "endAnchor": "F11",
      "text": "Ck 28/64 · ΔP 560 psi",
      "textLink": "Network!$H$11"
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-3",
      "preset": "diamond",
      "anchor": "E18",
      "endAnchor": "E19"
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-3 label",
      "preset": "rect",
      "anchor": "D16",
      "endAnchor": "F17",
      "text": "Ck 20/64 · ΔP 1,090 psi",
      "textLink": "Network!$H$12"
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-4",
      "preset": "diamond",
      "anchor": "E24",
      "endAnchor": "E25"
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-4 label",
      "preset": "rect",
      "anchor": "D22",
      "endAnchor": "F23",
      "text": "Ck 32/64 · ΔP 340 psi",
      "textLink": "Network!$H$13"
    },
    {
      "sheet": "Gathering",
      "name": "Manifold",
      "preset": "rect",
      "anchor": "G13",
      "endAnchor": "I17",
      "text": "Manifold 420 psi\n3 production · 1 test",
      "textLink": "Network!$H$14"
    },
    {
      "sheet": "Gathering",
      "name": "Production separator",
      "preset": "flowChartTerminator",
      "anchor": "J12",
      "endAnchor": "L15",
      "text": "Production separator\n250 psi · 6,520 bbl/d",
      "textLink": "Network!$H$15"
    },
    {
      "sheet": "Gathering",
      "name": "Test separator",
      "preset": "flowChartTerminator",
      "anchor": "J16",
      "endAnchor": "L19",
      "text": "Test separator\n265 psi · 2,420 bbl/d",
      "textLink": "Network!$H$16"
    },
    {
      "sheet": "Gathering",
      "name": "Gas to compressor",
      "preset": "rect",
      "anchor": "M10",
      "endAnchor": "O12",
      "text": "Gas to compressor\n4,160 Mscf/d",
      "textLink": "Network!$H$17"
    },
    {
      "sheet": "Gathering",
      "name": "Water disposal",
      "preset": "rect",
      "anchor": "M13",
      "endAnchor": "O15",
      "text": "Water disposal\n2,710 bbl/d",
      "textLink": "Network!$H$19"
    },
    {
      "sheet": "Gathering",
      "name": "Oil export pipeline",
      "preset": "rect",
      "anchor": "M16",
      "endAnchor": "O18",
      "text": "Oil export pipeline\n6,230 bbl/d",
      "textLink": "Network!$H$18"
    }
  ],
  "pictures": [
    {
      "sheet": "Gathering",
      "name": "Wellhead W-1",
      "format": "svg",
      "inCell": false,
      "anchor": "C4"
    },
    {
      "sheet": "Gathering",
      "name": "Wellhead W-2",
      "format": "svg",
      "inCell": false,
      "anchor": "C10"
    },
    {
      "sheet": "Gathering",
      "name": "Wellhead W-3",
      "format": "svg",
      "inCell": false,
      "anchor": "C16"
    },
    {
      "sheet": "Gathering",
      "name": "Wellhead W-4",
      "format": "svg",
      "inCell": false,
      "anchor": "C22"
    }
  ],
  "connectors": [
    {
      "sheet": "Gathering",
      "name": "Wellhead W-1 to Choke W-1",
      "preset": "straightConnector1",
      "anchor": "D6",
      "endAnchor": "E6",
      "start": "Wellhead W-1",
      "startSite": 3,
      "end": "Choke W-1",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-1 to Manifold",
      "preset": "bentConnector3",
      "anchor": "E6",
      "endAnchor": "G15",
      "start": "Choke W-1",
      "startSite": 3,
      "end": "Manifold",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Wellhead W-2 to Choke W-2",
      "preset": "straightConnector1",
      "anchor": "D12",
      "endAnchor": "E12",
      "start": "Wellhead W-2",
      "startSite": 3,
      "end": "Choke W-2",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-2 to Manifold",
      "preset": "bentConnector3",
      "anchor": "E12",
      "endAnchor": "G15",
      "start": "Choke W-2",
      "startSite": 3,
      "end": "Manifold",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Wellhead W-3 to Choke W-3",
      "preset": "straightConnector1",
      "anchor": "D18",
      "endAnchor": "E18",
      "start": "Wellhead W-3",
      "startSite": 3,
      "end": "Choke W-3",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-3 to Manifold",
      "preset": "bentConnector3",
      "anchor": "E15",
      "endAnchor": "G18",
      "start": "Choke W-3",
      "startSite": 3,
      "end": "Manifold",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Wellhead W-4 to Choke W-4",
      "preset": "straightConnector1",
      "anchor": "D24",
      "endAnchor": "E24",
      "start": "Wellhead W-4",
      "startSite": 3,
      "end": "Choke W-4",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Choke W-4 to Manifold",
      "preset": "bentConnector3",
      "anchor": "E15",
      "endAnchor": "G24",
      "start": "Choke W-4",
      "startSite": 3,
      "end": "Manifold",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Manifold to Production separator",
      "preset": "bentConnector3",
      "anchor": "I13",
      "endAnchor": "J15",
      "start": "Manifold",
      "startSite": 3,
      "end": "Production separator",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Manifold to Test separator",
      "preset": "bentConnector3",
      "anchor": "I15",
      "endAnchor": "J17",
      "start": "Manifold",
      "startSite": 3,
      "end": "Test separator",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Production separator to Gas to compressor",
      "preset": "bentConnector3",
      "anchor": "L11",
      "endAnchor": "M13",
      "start": "Production separator",
      "startSite": 3,
      "end": "Gas to compressor",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Production separator to Oil export pipeline",
      "preset": "bentConnector3",
      "anchor": "L13",
      "endAnchor": "M17",
      "start": "Production separator",
      "startSite": 3,
      "end": "Oil export pipeline",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Production separator to Water disposal",
      "preset": "bentConnector3",
      "anchor": "L13",
      "endAnchor": "M14",
      "start": "Production separator",
      "startSite": 3,
      "end": "Water disposal",
      "endSite": 1
    },
    {
      "sheet": "Gathering",
      "name": "Test separator to Oil export pipeline",
      "preset": "straightConnector1",
      "anchor": "L17",
      "endAnchor": "M17",
      "start": "Test separator",
      "startSite": 3,
      "end": "Oil export pipeline",
      "endSite": 1
    }
  ],
  "conditionalFormats": [
    {
      "sheet": "Inputs",
      "type": "Expression",
      "range": "B23:B28",
      "priority": 1,
      "stopIfTrue": false,
      "formula": "$B23=\"CHECK\"",
      "limits": [],
      "fill": "FFE1E1"
    },
    {
      "sheet": "Inputs",
      "type": "Expression",
      "range": "C23:I28",
      "priority": 2,
      "stopIfTrue": false,
      "formula": "$B23=\"CHECK\"",
      "limits": []
    },
    {
      "sheet": "Inputs",
      "type": "Expression",
      "range": "B20",
      "priority": 3,
      "stopIfTrue": false,
      "formula": "GS_Problems>0",
      "limits": [],
      "fill": "FFE1E1"
    },
    {
      "sheet": "Gathering",
      "type": "Expression",
      "range": "A3:P3",
      "priority": 1,
      "stopIfTrue": false,
      "formula": "GS_Problems>0",
      "limits": [],
      "fill": "FFE1E1"
    }
  ],
  "sparklineGroups": [],
  "functions": []
}