{"text_format":"1","workbook":"xlsx","n_sheets":8,"sheets":["Vendor","P.O Details","P.O","Customers","S.O","Invoice","Products","Orders_and_Inventory"],"not_rendered":{"charts":0,"images":0,"macros":0,"external_links":1,"defined_names":10,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"Vendor","index":0,"n_rows":10,"n_cols":10,"rows_kept":10,"cut":false,"hidden":false,"merged":[]}
[]
["Ven - Code","Main Acc","Vendor Name","Contact","Address","Balance","Age 01:30","Age 30:60","Age 60:90","Confirmed"]
[2110001,211,"Dallah Trading Co","Eng.Naim","Dammam"]
[]
[]
[]
[]
[]
[]
["VedCode",{"$f":"Vendors_Table[[#Data],[Ven - Code]]","v":{"$error":"#VALUE!"}}]

{"sheet":"P.O Details","index":1,"n_rows":18,"n_cols":17,"rows_kept":18,"cut":false,"hidden":false,"merged":[]}
[]
["Order Number","Order Date","Ven - Code","Partner","Shipp To","Item #","Product Name","Unit","Quantity","Price Pefor Tax","Tax","Unit Price","Total without tax","Totao with Tax","Tax Amount","Column12","Column13"]
["P.O#10001","2018-04-09",2110001,{"$f":"VLOOKUP(PO_Details[[#This Row],[Ven - Code]],Vendors_Table[],3,FALSE)","v":"Dallah Trading Co"},"OMARCO main warhouse","AC0001","AC. CONSILD 5 TON OUTDOOR","Pcs",15,2700,0.05,{"$f":"PO_Details[[#This Row],[Price Pefor Tax]]*1.05","v":2835},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Price Pefor Tax]]","v":40500},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Unit Price]]","v":42525},{"$f":"PO_Details[[#This Row],[Totao with Tax]]-PO_Details[[#This Row],[Total without tax]]","v":2025}]
["P.O#10001","2018-04-10",2110001,{"$f":"VLOOKUP(PO_Details[[#This Row],[Ven - Code]],Vendors_Table[],3,FALSE)","v":"Dallah Trading Co"},"OMARCO main warhouse","AC0002","AC. CONSILD 5 TON INDOOR","Pcs",15,1600,0.05,{"$f":"PO_Details[[#This Row],[Price Pefor Tax]]*1.05","v":1680},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Price Pefor Tax]]","v":24000},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Unit Price]]","v":25200},{"$f":"PO_Details[[#This Row],[Totao with Tax]]-PO_Details[[#This Row],[Total without tax]]","v":1200}]
["P.O#10001","2018-04-11",2110001,{"$f":"VLOOKUP(PO_Details[[#This Row],[Ven - Code]],Vendors_Table[],3,FALSE)","v":"Dallah Trading Co"},"OMARCO main warhouse","AC0003","AC. CONTACTOR","Pcs",15,400,0.05,{"$f":"PO_Details[[#This Row],[Price Pefor Tax]]*1.05","v":420},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Price Pefor Tax]]","v":6000},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Unit Price]]","v":6300},{"$f":"PO_Details[[#This Row],[Totao with Tax]]-PO_Details[[#This Row],[Total without tax]]","v":300}]
["P.O#10001","2018-04-12",2110001,{"$f":"VLOOKUP(PO_Details[[#This Row],[Ven - Code]],Vendors_Table[],3,FALSE)","v":"Dallah Trading Co"},"OMARCO main warhouse","AC0004","AC. THERMOSTATE","Pcs",15,50,0.05,{"$f":"PO_Details[[#This Row],[Price Pefor Tax]]*1.05","v":52.5},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Price Pefor Tax]]","v":750},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Unit Price]]","v":787.5},{"$f":"PO_Details[[#This Row],[Totao with Tax]]-PO_Details[[#This Row],[Total without tax]]","v":37.5}]
[null,null,null,{"$f":"VLOOKUP(PO_Details[[#This Row],[Ven - Code]],Vendors_Table[],3,FALSE)","v":{"$error":"#N/A"}},null,null,null,null,null,null,null,{"$f":"PO_Details[[#This Row],[Price Pefor Tax]]*1.05","v":0},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Price Pefor Tax]]","v":0},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Unit Price]]","v":0},{"$f":"PO_Details[[#This Row],[Totao with Tax]]-PO_Details[[#This Row],[Total without tax]]","v":0}]
[null,null,null,{"$f":"VLOOKUP(PO_Details[[#This Row],[Ven - Code]],Vendors_Table[],3,FALSE)","v":{"$error":"#N/A"}},null,null,null,null,null,null,null,{"$f":"PO_Details[[#This Row],[Price Pefor Tax]]*1.05","v":0},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Price Pefor Tax]]","v":0},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Unit Price]]","v":0},{"$f":"PO_Details[[#This Row],[Totao with Tax]]-PO_Details[[#This Row],[Total without tax]]","v":0}]
[null,null,null,{"$f":"VLOOKUP(PO_Details[[#This Row],[Ven - Code]],Vendors_Table[],3,FALSE)","v":{"$error":"#N/A"}},null,null,null,null,null,null,null,{"$f":"PO_Details[[#This Row],[Price Pefor Tax]]*1.05","v":0},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Price Pefor Tax]]","v":0},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Unit Price]]","v":0},{"$f":"PO_Details[[#This Row],[Totao with Tax]]-PO_Details[[#This Row],[Total without tax]]","v":0}]
[null,null,null,{"$f":"VLOOKUP(PO_Details[[#This Row],[Ven - Code]],Vendors_Table[],3,FALSE)","v":{"$error":"#N/A"}},null,null,null,null,null,null,null,{"$f":"PO_Details[[#This Row],[Price Pefor Tax]]*1.05","v":0},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Price Pefor Tax]]","v":0},{"$f":"PO_Details[[#This Row],[Quantity]]*PO_Details[[#This Row],[Unit Price]]","v":0},{"$f":"PO_Details[[#This Row],[Totao with Tax]]-PO_Details[[#This Row],[Total without tax]]","v":0}]
["Total",null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"SUBTOTAL(109,PO_Details[Totao with Tax])","v":74812.5},{"$f":"SUBTOTAL(109,PO_Details[Tax Amount])","v":3562.5},null,{"$f":"SUBTOTAL(103,PO_Details[Column13])","v":0}]
[]
[]
[null,null,null,null,null,null,null,null,null,"Quantity","Unit Price"]
[]
[null,null,null,{"$f":"SUMIFS(Vendors_Table[[#Data],[Vendor Name]],Vendors_Table[[#Data],[Ven - Code]],C16)","v":0}]
[]
[null,null,null,null,"Po#",null,{"$f":"PO_Details[[#Data],[Order Number]]","v":{"$error":"#VALUE!"}}]

{"sheet":"P.O","index":2,"n_rows":38,"n_cols":9,"rows_kept":38,"cut":false,"hidden":false,"merged":[[37,2,37,8],[12,2,12,7],[11,1,11,2],[10,1,10,2],[9,1,9,2],[29,2,29,4],[30,2,30,4],[31,2,31,4],[32,6,32,8],[33,6,33,7],[9,3,9,4],[10,3,10,4],[11,3,11,4],[9,7,9,8],[10,7,10,8],[11,7,11,8],[0,3,0,8],[0,0,0,2],[7,3,7,4],[8,3,8,4],[7,1,7,2],[8,1,8,2],[7,7,7,8],[8,7,8,8]]}
["[OMARCO]",null,null,"Purchase Order"]
[]
[null,null,null,null,null,null,null,"Date:",{"$f":"VLOOKUP($I$4,PO_Details[],2,FALSE)","v":"2018-04-09"}]
[null,null,null,null,null,null,null,"Order Number","P.O#10001"]
[]
[]
[]
[null,"Partner",null,{"$f":"VLOOKUP($I$4,PO_Details[],4,FALSE)","v":"Dallah Trading Co"},null,null,"Shipp To",{"$f":"VLOOKUP($I$4,PO_Details[],5,FALSE)","v":"OMARCO main warhouse"}]
[null,"Ven - Code",null,{"$f":"VLOOKUP($I$4,PO_Details[],3,FALSE)","v":2110001},null,null,null,{"$f":"A1","v":"[OMARCO]"}]
[]
[]
[]
[]
[null,"Sl","Item #","Product Name","Unit","Tax","Quantity","Unit Price","Total without tax"]
[null,1,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(1:1)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":"AC0001"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(1:1)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":"AC. CONSILD 5 TON OUTDOOR"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(1:1)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":"Pcs"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(1:1)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":0.05},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(1:1)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":15},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(1:1)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":2835},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(1:1)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":40500}]
[null,2,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(2:2)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":"AC0002"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(2:2)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":"AC. CONSILD 5 TON INDOOR"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(2:2)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":"Pcs"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(2:2)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":0.05},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(2:2)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":15},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(2:2)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":1680},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(2:2)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":24000}]
[null,3,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(3:3)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":"AC0003"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(3:3)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":"AC. CONTACTOR"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(3:3)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":"Pcs"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(3:3)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":0.05},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(3:3)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":15},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(3:3)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":420},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(3:3)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":6000}]
[null,4,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(4:4)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":"AC0004"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(4:4)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":"AC. THERMOSTATE"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(4:4)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":"Pcs"},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(4:4)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":0.05},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(4:4)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":15},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(4:4)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":52.5},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(4:4)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":750}]
[null,null,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(5:5)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(5:5)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(5:5)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(5:5)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(5:5)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(5:5)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(5:5)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":0}]
[null,null,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(6:6)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(6:6)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(6:6)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(6:6)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(6:6)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(6:6)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(6:6)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":0}]
[null,null,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(7:7)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(7:7)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(7:7)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(7:7)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(7:7)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(7:7)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(7:7)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":0}]
[null,null,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(8:8)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(8:8)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(8:8)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(8:8)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(8:8)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(8:8)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(8:8)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":0}]
[null,null,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(9:9)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(9:9)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(9:9)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(9:9)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(9:9)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(9:9)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(9:9)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":""}]
[null,null,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(10:10)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(10:10)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(10:10)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(10:10)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(10:10)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(10:10)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(10:10)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":""}]
[null,null,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(11:11)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(11:11)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(11:11)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(11:11)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(11:11)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(11:11)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(11:11)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":""}]
[null,null,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(12:12)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(12:12)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(12:12)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(12:12)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(12:12)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(12:12)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(12:12)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":""}]
[null,null,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(13:13)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(13:13)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(13:13)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(13:13)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(13:13)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(13:13)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(13:13)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":""}]
[null,null,{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(14:14)),MATCH($C$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(14:14)),MATCH($D$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(14:14)),MATCH($E$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(14:14)),MATCH($F$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(14:14)),MATCH($G$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(14:14)),MATCH($H$14,PO_Details[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(14:14)),MATCH($I$14,PO_Details[#Headers],0)),\"\")","v":""}]
[null,null,null,null,null,null,null,"Subtotal",{"$f":"SUBTOTAL(109,Table4[Total without tax])","v":71250}]
[null,null,null,null,null,null,null,"Sales Tax",{"$f":"(SUBTOTAL(109,Table4[Total without tax])*0.05)","v":3562.5}]
[null,null,null,null,null,null,null,"Total",{"$f":"I29+I30","v":74812.5}]
[null,null,{"$f":"IF(SUM(H31)>0,SUM((H31*H32)+H31),\"\")","v":""}]
[]
[null,null,null,null,null,null,"Authorized by",null,"Date"]
[]
[]
[]
[null,null,"[Street Address], [City, ST  ZIP Code]  [Phone]  [Fax]  [E-mail]"]

{"sheet":"Customers","index":3,"n_rows":13,"n_cols":10,"rows_kept":13,"cut":false,"hidden":false,"merged":[]}
[]
[]
["Cus-Code","Main Account","Cust - Name","Contact","Address","Balance","Age 01:30","Age 30:60","Age 60:90","Confirmed"]
[122010001,12201,"Al-Dawaa Medical Service","Dr.Ahmed ","Khobar"]
[]
[]
[]
[]
[]
[]
[]
[]
["CusDetails",{"$f":"Customers_Table[Cus-Code]","v":{"$error":"#VALUE!"}}]

{"sheet":"S.O","index":4,"n_rows":12,"n_cols":16,"rows_kept":12,"cut":false,"hidden":false,"merged":[]}
[]
["Order Number","Order Date","Cust - Code","Partner","Project Code","Pro - Name","Item #","Product Name","Unit","Quantity","Price","Tax","Unit Price","Tax Amount","Total without tax","Totao with Tax"]
["S.O #10001","2018-04-09",122010001,{"$f":"IFERROR(VLOOKUP(S.O[[#This Row],[Cust - Code]],Customers_Table[],3,FALSE),\"\")","v":"Al-Dawaa Medical Service"},"PHD","PH-124","AC0001","AC. CONSILD 5 TON OUTDOOR","PCS",10,2700,0.05,{"$f":"S.O[[#This Row],[Price]]*1.05","v":2835},{"$f":"S.O[[#This Row],[Price]]*S.O[[#This Row],[Tax]]","v":135},{"$f":"S.O[[#This Row],[Quantity]]*(S.O[[#This Row],[Price]]+S.O[[#This Row],[Tax Amount]])","v":28350},{"$f":"S.O[[#This Row],[Tax Amount]]*S.O[[#This Row],[Quantity]]","v":1350}]
["S.O #10001","2018-04-10",122010001,{"$f":"IFERROR(VLOOKUP(S.O[[#This Row],[Cust - Code]],Customers_Table[],3,FALSE),\"\")","v":"Al-Dawaa Medical Service"},"PHD","PH-124","AC0002","AC. CONSILD 5 TON INDOOR","PCS",10,1600,0.05,{"$f":"S.O[[#This Row],[Price]]*1.05","v":1680},{"$f":"S.O[[#This Row],[Price]]*S.O[[#This Row],[Tax]]","v":80},{"$f":"S.O[[#This Row],[Quantity]]*(S.O[[#This Row],[Price]]+S.O[[#This Row],[Tax Amount]])","v":16800},{"$f":"S.O[[#This Row],[Tax Amount]]*S.O[[#This Row],[Quantity]]","v":800}]
["S.O #10001","2018-04-11",122010001,{"$f":"IFERROR(VLOOKUP(S.O[[#This Row],[Cust - Code]],Customers_Table[],3,FALSE),\"\")","v":"Al-Dawaa Medical Service"},"PHD","PH-124","AC0003","AC. CONTACTOR","PCS",10,400,0.05,{"$f":"S.O[[#This Row],[Price]]*1.05","v":420},{"$f":"S.O[[#This Row],[Price]]*S.O[[#This Row],[Tax]]","v":20},{"$f":"S.O[[#This Row],[Quantity]]*(S.O[[#This Row],[Price]]+S.O[[#This Row],[Tax Amount]])","v":4200},{"$f":"S.O[[#This Row],[Tax Amount]]*S.O[[#This Row],[Quantity]]","v":200}]
["S.O #10001","2018-04-12",122010001,{"$f":"IFERROR(VLOOKUP(S.O[[#This Row],[Cust - Code]],Customers_Table[],3,FALSE),\"\")","v":"Al-Dawaa Medical Service"},"PHD","PH-124","AC0004","AC. THERMOSTATE","PCS",10,50,0.05,{"$f":"S.O[[#This Row],[Price]]*1.05","v":52.5},{"$f":"S.O[[#This Row],[Price]]*S.O[[#This Row],[Tax]]","v":2.5},{"$f":"S.O[[#This Row],[Quantity]]*(S.O[[#This Row],[Price]]+S.O[[#This Row],[Tax Amount]])","v":525},{"$f":"S.O[[#This Row],[Tax Amount]]*S.O[[#This Row],[Quantity]]","v":25}]
[null,null,null,{"$f":"IFERROR(VLOOKUP(S.O[[#This Row],[Cust - Code]],Customers_Table[],3,FALSE),\"\")","v":""},null,null,null,null,null,null,null,null,{"$f":"S.O[[#This Row],[Price]]*1.05","v":0},{"$f":"S.O[[#This Row],[Price]]*S.O[[#This Row],[Tax]]","v":0},{"$f":"S.O[[#This Row],[Quantity]]*(S.O[[#This Row],[Price]]+S.O[[#This Row],[Tax Amount]])","v":0},{"$f":"S.O[[#This Row],[Tax Amount]]*S.O[[#This Row],[Quantity]]","v":0}]
["Total",null,null,null,null,null,null,null,null,null,null,null,null,null,{"$f":"SUBTOTAL(109,S.O[Total without tax])","v":49875},{"$f":"SUBTOTAL(109,S.O[Totao with Tax])","v":2375}]
[]
[null,"S.O.#",{"$f":"S.O[Order Number]","v":{"$error":"#VALUE!"}}]
[]
[null,null,null,null,null,null,null,null,null,"Quantity","Unit Price"]

{"sheet":"Invoice","index":5,"n_rows":34,"n_cols":6,"rows_kept":34,"cut":false,"hidden":false,"merged":[[37,0,37,5],[0,4,0,5],[3,3,3,4],[4,3,4,4],[6,3,6,4],[7,3,7,4],[30,0,30,2],[30,3,30,4],[31,3,31,4],[33,3,33,4],[36,0,36,5]]}
[null,null,null,null,"INVOICE"]
["[Street Address]"]
["[City, ST  ZIP]"]
["Phone: (000) 000-0000",null,null,"INVOICE #",null,"DATE"]
[null,null,null,"S.O #10001",null,"2018-02-21"]
[]
["BILL TO",null,null,"Partner",null,"TERMS"]
["[Name]",null,null,564,null,"Due Upon Receipt"]
["[Company Name]"]
["[Street Address]"]
["[City, ST  ZIP]"]
["[Phone]"]
["[Email Address]"]
[]
["SL","Item #","Product Name","Quantity","Unit Price","AMOUNT"]
[1,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(1:1)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":"AC0001"},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(1:1)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":"AC. CONSILD 5 TON OUTDOOR"},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(1:1)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":10},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(1:1)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":2835},{"$f":"IFERROR(IF(D16=\"\",ROUND(1*E16,2),ROUND(D16*E16,2)),\"\")","v":28350}]
[2,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(2:2)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":"AC0002"},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(2:2)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":"AC. CONSILD 5 TON INDOOR"},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(2:2)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":10},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(2:2)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":1680},16800]
[3,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(3:3)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":"AC0003"},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(3:3)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":"AC. CONTACTOR"},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(3:3)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":10},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(3:3)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":420},4200]
[4,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(4:4)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":"AC0004"},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(4:4)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":"AC. THERMOSTATE"},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(4:4)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":10},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(4:4)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":52.5},525]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(5:5)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(5:5)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(5:5)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":0},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(5:5)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":0},0]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(6:6)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(6:6)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(6:6)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(6:6)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":""},""]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(7:7)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(7:7)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(7:7)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(7:7)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":""},""]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(8:8)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(8:8)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(8:8)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(8:8)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":""},""]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(9:9)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(9:9)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(9:9)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(9:9)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":""},""]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(10:10)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(10:10)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(10:10)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(10:10)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":""},""]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(11:11)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(11:11)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(11:11)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(11:11)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":""},""]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(12:12)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(12:12)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(12:12)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(12:12)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":""},""]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(13:13)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(13:13)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(13:13)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(13:13)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":""},""]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(14:14)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(14:14)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(14:14)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(14:14)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":""},""]
[null,{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(15:15)),MATCH($B$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(15:15)),MATCH($C$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(15:15)),MATCH($D$15,S.O[#Headers],0)),\"\")","v":""},{"$f":"IFERROR(INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(15:15)),MATCH($E$15,S.O[#Headers],0)),\"\")","v":""},""]
["Thank you for your business!",null,null,"SUBTOTAL",null,{"$f":"SUM(F16:F30)","v":49875}]
[null,null,null,"TAX RATE",null,0.05]
[null,null,null,"TAX",null,{"$f":"F31*F32","v":2493.75}]
[null,null,null,"TOTAL",null,{"$f":"F31+F33","v":52368.75}]

{"sheet":"Products","index":6,"n_rows":2010,"n_cols":7,"rows_kept":2010,"cut":false,"hidden":false,"merged":[[0,5,0,6],[7,0,7,3]]}
["INVENTORY AND SALES MANAGER",null,null,null,null,"Orders and Inventory"]
[]
["INSTRUCTIONS"]
["1. Enter Products below"]
["2. Enter Order details in the Orders and Inventory worksheet"]
["3. View the report in the Report worksheet."]
[]
["ENTER PRODUCTS"]
["Product Name","Product Description","Product Category","Re-Order Point"]
["AC. CONSILD 5 TON OUTDOOR","AIR CONDITION 5 TON OUT DOOR UNIT","AC",5]
["AC. CONSILD 5 TON INDOOR","AIR CONDITION 5 TON IN DOOR UNIT","AC",5]
["AC. CONTACTOR","CONTACTOR FOR AIR CONDITON","AC",5]
["AC. THERMOSTATE","THERMOSTATE FOR AIR CONDITON","AC",5]
[]
[]
[]
[]
[]
[]
[]
[null,null,null,null,null,null,"DATA VALIDATION"]
[null,null,null,null,null,null,{"$f":"IFERROR(IF(SUM(1/COUNTIF(Tbl_Product[Product Name],Tbl_Product[Product Name]))<COUNTA(Tbl_Product[Product Name]),\"Duplicate Product Names\",\"No Errors\"),\"Check Product Names in Product Table\")","v":"Check Product Names in Product Table"}]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
["End of 2000 Products"]

{"sheet":"Orders_and_Inventory","index":7,"n_rows":106,"n_cols":12,"rows_kept":106,"cut":false,"hidden":false,"merged":[[7,2,8,2],[11,8,11,11],[0,0,0,8],[2,1,2,2],[2,7,2,10],[3,0,8,0],[3,1,4,1],[3,2,4,2],[3,3,4,3],[3,5,4,5],[6,1,6,3],[7,1,8,1]]}
["INVENTORY MANAGER - ORDERS AND INVENTORY",null,null,null,null,null,null,null,null,"Products"]
[]
[null,"CURRENT INVENTORY LEVEL",null,null,null,"CHOOSE PRODUCT"]
[null,null,null,null,null,"AC. CONSILD 5 TON OUTDOOR"]
[null,null,null,null,null,null,null,{"$f":"COUNTIF(C$14:$C14,C14)&\":\"&COUNTIF(C$14:$C14,C14)","v":"1:1"},null,null,null,30]
[null,"PRODUCTS AVAILABLE","QUANTITY","PRODUCTS TO RE-ORDER","CURRENT INVENTORY",{"$f":"IFERROR(INDEX(xxx,MATCH(F4,INDEX(xxx,,1),0),2),\"\")","v":""},null,{"$f":"ROW(H5)","v":5}]
[null,"ORDER ITEMS THAT CANNOT BE FULFILLED*",null,null,"RE-ORDER POINT",{"$f":"IFERROR(INDEX(xxx,MATCH(F4,INDEX(xxx,,1),0),4),\"\")","v":""}]
[null,{"$f":"COUNTIFS(Tbl_Orders[Inventory Availability],\"<0\",Tbl_Orders[Expected Date],\"<=\"&TODAY(),Tbl_Orders[Order Type],\"Sale\")","v":0},{"$f":"COUNTIFS(Tbl_Orders[Inventory Availability],\"<0\",Tbl_Orders[Expected Date],\">\"&TODAY(),Tbl_Orders[Order Type],\"Sale\")","v":0},null,"PENDING PURCHASE QUANTITY",{"$f":"IFERROR(INDEX(xxx,MATCH(F4,INDEX(xxx,,1),0),3),\"\")","v":""}]
[null,null,null,null,"PENDING SALES QUANTITY",{"$f":"IFERROR(SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\">\"&TODAY(),Tbl_Orders[Product Name],F4,Tbl_Orders[Order Type],\"SALE\"),\"\")","v":0}]
[null,"CURRENT","FUTURE"]
[null,"*where Sale quantity is higher than Inventory available - highlighted with red border in the table below"]
["ENTER YOUR ORDER DETAILS",null,null,null,null,null,null,null,"these  columns are automatically calculated"]
["Order Number","Order Date","Order Type","Expected Date","Partner","Product Name","Quantity","Unit Price","Amount","Product Category","YearMonth","Inventory Availability"]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":"S.O #10001"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":"2018-04-09"},"Sale","12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":"Al-Dawaa Medical Service"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":"AC. CONSILD 5 TON OUTDOOR"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":10},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C14,$C14)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":2835},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":28350},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":"AC"},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":"2018-Apr"},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":5}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":"S.O #10001"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":"2018-04-10"},"Sale","12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":"Al-Dawaa Medical Service"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":"AC. CONSILD 5 TON INDOOR"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":10},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C15,$C15)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":1680},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":16800},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":"AC"},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":"2018-Apr"},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":5}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":"S.O #10001"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":"2018-04-11"},"Sale","12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":"Al-Dawaa Medical Service"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":"AC. CONTACTOR"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":10},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C16,$C16)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":420},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":4200},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":"AC"},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":"2018-Apr"},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":5}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":"S.O #10001"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":"2018-04-12"},"Sale","12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":"Al-Dawaa Medical Service"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":"AC. THERMOSTATE"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":10},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C17,$C17)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":52.5},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":525},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":"AC"},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":"2018-Apr"},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":-10}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":"P.O#10001"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":"2018-04-09"},"Purchase","12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":"Dallah Trading Co"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":"AC. CONSILD 5 TON OUTDOOR"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":15},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C18,$C18)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":2835},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":42525},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":"AC"},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":"2018-Apr"},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":5}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":"P.O#10001"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":"2018-04-10"},"Purchase","12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":"Dallah Trading Co"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":"AC. CONSILD 5 TON INDOOR"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":15},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C19,$C19)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":1680},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":25200},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":"AC"},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":"2018-Apr"},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":5}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":"P.O#10001"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":"2018-04-11"},"Purchase","12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":"Dallah Trading Co"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":"AC. CONTACTOR"},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":15},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C20,$C20)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":420},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":6300},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":"AC"},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":"2018-Apr"},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":5}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C21,$C21)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C22,$C22)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C23,$C23)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C24,$C24)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C25,$C25)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C26,$C26)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C27,$C27)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C28,$C28)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C29,$C29)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C30,$C30)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C31,$C31)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C32,$C32)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C33,$C33)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C34,$C34)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C35,$C35)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C36,$C36)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C37,$C37)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C38,$C38)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C39,$C39)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C40,$C40)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C41,$C41)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C42,$C42)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C43,$C43)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C44,$C44)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C45,$C45)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C46,$C46)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C47,$C47)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C48,$C48)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C49,$C49)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C50,$C50)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C51,$C51)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C52,$C52)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C53,$C53)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C54,$C54)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C55,$C55)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C56,$C56)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C57,$C57)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C58,$C58)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C59,$C59)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C60,$C60)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C61,$C61)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C62,$C62)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C63,$C63)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C64,$C64)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C65,$C65)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C66,$C66)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C67,$C67)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C68,$C68)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C69,$C69)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C70,$C70)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C71,$C71)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C72,$C72)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C73,$C73)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C74,$C74)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C75,$C75)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C76,$C76)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C77,$C77)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C78,$C78)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C79,$C79)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C80,$C80)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C81,$C81)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C82,$C82)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C83,$C83)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C84,$C84)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C85,$C85)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C86,$C86)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C87,$C87)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C88,$C88)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C89,$C89)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C90,$C90)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C91,$C91)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C92,$C92)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C93,$C93)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C94,$C94)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C95,$C95)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C96,$C96)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C97,$C97)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C98,$C98)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C99,$C99)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C100,$C100)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C101,$C101)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C102,$C102)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(A$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(A$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(B$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(B$13,S.O[#Headers],0)),\"\")),\"\")","v":""},null,"12-31-18",{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(E$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(E$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(F$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(F$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(G$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(G$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",IF(Tbl_Orders[[#This Row],[Order Type]]=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(H$13,PO_Details[#Headers],0)),\"\"),IF(Tbl_Orders[[#This Row],[Order Type]]=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),COUNTIF($C$14:$C103,$C103)),MATCH(H$13,S.O[#Headers],0)),\"\")),\"\")","v":""},{"$f":"IFERROR(Tbl_Orders[[#This Row],[Unit Price]]*Tbl_Orders[Quantity],\"\")","v":""},{"$f":"IF(Tbl_Orders[[#This Row],[Product Name]]=\"\",\"\",IFERROR(INDEX(Tbl_Product[#Data],MATCH(Tbl_Orders[[#This Row],[Product Name]],INDEX(Tbl_Product[#Data],,1),0),3),\"\"))","v":""},{"$f":"TEXT(Tbl_Orders[[#This Row],[Order Date]],\"yyyy-mmm\")","v":""},{"$f":"SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Purchase\")-SUMIFS(Tbl_Orders[Quantity],Tbl_Orders[Expected Date],\"<=\"&Tbl_Orders[[#This Row],[Expected Date]],Tbl_Orders[Product Name],Tbl_Orders[[#This Row],[Product Name]],Tbl_Orders[Order Type],\"Sale\")","v":0}]
[]
[{"$f":"IFERROR(IF(B105=\"Sale\",INDEX(S.O[],SMALL(IF(S.O[Order Number]=S.Order,ROW(S.O[])-ROW(S.O[#Headers])),ROW(1:1)),MATCH($A$13,S.O[#Headers],0)),\"\"),\"\")","v":"S.O #10001"},"Sale"]
[{"$f":"IFERROR(IF(B106=\"Purchase\",INDEX(PO_Details[],SMALL(IF(PO_Details[Order Number]=PoNu,ROW(PO_Details[])-ROW(PO_Details[#Headers])),ROW(1:1)),MATCH($A$13,PO_Details[#Headers],0)),\"\"),\"\")","v":"P.O#10001"},"Purchase"]