{
 "id": "carpentry-workshop",
 "file": "softwiro-carpentry-workshop.xlsx",
 "title": "شيت ورشة النجارة: قائمة التقطيع والألواح والتكلفة والتسليم",
 "language": "ar",
 "direction": "rtl",
 "how_it_works": "White cells are typed input; cells whose kind is \"formula\" are calculated and must not be overwritten. Add one record per row under the header row of a record table, keeping the columns in order.",
 "sheets": [
  {
   "name": "ابدأ هنا",
   "formula_cells": 0
  },
  {
   "name": "الإعدادات",
   "formula_cells": 0,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 5,
     "capacity_last_row": 9,
     "columns": [
      {
       "column": "A",
       "header": "الإعداد",
       "kind": "input",
       "examples": [
        "تاريخ اليوم",
        "نسبة الهالك المعتادة",
        "أجر يوم العمل"
       ]
      },
      {
       "column": "B",
       "header": "القيمة",
       "kind": "input",
       "examples": [
        "2026-11-15",
        0.1,
        450
       ]
      },
      {
       "column": "C",
       "header": "ملاحظة",
       "kind": "input",
       "examples": [
        "اكتبه بيدك كل مرة تفتح فيها الشيت؛ منه يُحسب تأخر التسليم.",
        "ما يضيع في القص والعيوب، وتُضاف على مساحة القطع قبل حساب عدد الألواح.",
        "أجر الصنايعي في اليوم، يُضرب في أيام العمل لكل طلب."
       ]
      }
     ]
    }
   ]
  },
  {
   "name": "الخامات",
   "formula_cells": 120,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 14,
     "capacity_last_row": 65,
     "columns": [
      {
       "column": "A",
       "header": "الكود",
       "kind": "input",
       "examples": [
        "B01",
        "B02",
        "B03"
       ]
      },
      {
       "column": "B",
       "header": "الخامة",
       "kind": "input",
       "examples": [
        "MDF أبيض 18 مم",
        "MDF خام للدهان 18 مم",
        "أبلكاش 18 مم"
       ]
      },
      {
       "column": "C",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "ألواح",
        "ألواح",
        "ألواح"
       ],
       "allowed_values": [
        "ألواح",
        "شريط حافة",
        "اكسسوار",
        "دهان"
       ]
      },
      {
       "column": "D",
       "header": "الوحدة",
       "kind": "input",
       "examples": [
        "لوح",
        "لوح",
        "لوح"
       ]
      },
      {
       "column": "E",
       "header": "طول اللوح سم",
       "kind": "input",
       "examples": [
        244,
        244,
        244
       ]
      },
      {
       "column": "F",
       "header": "عرض اللوح سم",
       "kind": "input",
       "examples": [
        122,
        122,
        122
       ]
      },
      {
       "column": "G",
       "header": "السعر",
       "kind": "input",
       "examples": [
        1450,
        1250,
        1900
       ]
      },
      {
       "column": "H",
       "header": "مساحة اللوح م²",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",N(E6)*N(F6)=0),\"\",ROUND(E6*F6/10000,4))"
      },
      {
       "column": "I",
       "header": "سعر المتر المربع",
       "kind": "formula",
       "formula_row_1": "=IF(H6=\"\",\"\",ROUND(G6/H6,2))"
      }
     ]
    }
   ]
  },
  {
   "name": "العملاء",
   "formula_cells": 600,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 8,
     "capacity_last_row": 105,
     "columns": [
      {
       "column": "A",
       "header": "العميل",
       "kind": "input",
       "examples": [
        "أحمد سالم",
        "منى فتحي",
        "هبة رمضان"
       ]
      },
      {
       "column": "B",
       "header": "الجوال",
       "kind": "input",
       "examples": [
        "01010000001",
        "01010000002",
        "01010000003"
       ]
      },
      {
       "column": "C",
       "header": "عدد الطلبات",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('الطلبات'!$C$6:$C$305,A6&\"\",'الطلبات'!$H$6:$H$305,\"<>ملغي\"))"
      },
      {
       "column": "D",
       "header": "قيمة الطلبات",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الطلبات'!$P$6:$P$305,'الطلبات'!$C$6:$C$305,A6&\"\"))"
      },
      {
       "column": "E",
       "header": "المدفوع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الطلبات'!$Q$6:$Q$305,'الطلبات'!$C$6:$C$305,A6&\"\"))"
      },
      {
       "column": "F",
       "header": "المتبقي",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(D6-E6,2))"
      },
      {
       "column": "G",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(F6>0,\"عليه متبقي\",IF(F6<0,\"دفع زيادة\",IF(C6=0,\"لا طلبات\",\"مسدد\"))))"
      },
      {
       "column": "H",
       "header": "ترتيب المتابعة",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(F6),IF(F6>0,COUNTIFS($F$6:$F$105,\">\"&F6)+COUNTIFS($F$6:F6,F6),\"\"),\"\")"
      }
     ]
    }
   ]
  },
  {
   "name": "الطلبات",
   "formula_cells": 5700,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 10,
     "capacity_last_row": 305,
     "columns": [
      {
       "column": "A",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "K001",
        "K002",
        "K003"
       ]
      },
      {
       "column": "B",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-03",
        "2026-10-08",
        "2026-10-12"
       ]
      },
      {
       "column": "C",
       "header": "العميل",
       "kind": "input",
       "examples": [
        "أحمد سالم",
        "منى فتحي",
        "هبة رمضان"
       ],
       "allowed_values": {
        "from_range": "'العملاء'!$A$6:$A$105"
       }
      },
      {
       "column": "D",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "مطبخ",
        "دولاب",
        "باب"
       ],
       "allowed_values": [
        "مطبخ",
        "دولاب",
        "باب",
        "مكتب",
        "سرير",
        "وحدة تلفزيون",
        "مكتبة",
        "تسريحة",
        "أخرى"
       ]
      },
      {
       "column": "E",
       "header": "السعر المتفق",
       "kind": "input",
       "examples": [
        18500,
        9800,
        4800
       ]
      },
      {
       "column": "F",
       "header": "العربون",
       "kind": "input",
       "examples": [
        6000,
        3000,
        2000
       ]
      },
      {
       "column": "G",
       "header": "موعد التسليم",
       "kind": "input",
       "examples": [
        "2026-10-28",
        "2026-11-05",
        "2026-10-30"
       ]
      },
      {
       "column": "H",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "تم التسليم",
        "جاهز للتسليم",
        "تجميع ودهان"
       ],
       "allowed_values": [
        "جديد",
        "قيد التقطيع",
        "تجميع ودهان",
        "جاهز للتسليم",
        "تم التسليم",
        "ملغي"
       ]
      },
      {
       "column": "I",
       "header": "كود اللوح",
       "kind": "input",
       "examples": [
        "B01",
        "B01",
        "B03"
       ]
      },
      {
       "column": "J",
       "header": "كود الشريط",
       "kind": "input",
       "examples": [
        "E01",
        "E01",
        "E02"
       ]
      },
      {
       "column": "K",
       "header": "أيام العمل",
       "kind": "input",
       "examples": [
        6,
        3,
        1.5
       ]
      },
      {
       "column": "L",
       "header": "كود الدهان",
       "kind": "input",
       "examples": [
        "P02",
        "P01",
        "P01"
       ],
       "allowed_values": {
        "from_range": "'الخامات'!$A$6:$A$65"
       }
      },
      {
       "column": "M",
       "header": "كمية الدهان لتر",
       "kind": "input",
       "examples": [
        2,
        1.5,
        6
       ]
      },
      {
       "column": "N",
       "header": "هالك %",
       "kind": "input",
       "examples": [
        0.12
       ]
      },
      {
       "column": "O",
       "header": "تليفون العميل",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('العملاء'!$B$6:$B$105,MATCH(C6&\"\",'العملاء'!$A$6:$A$105,0))&\"\",\"عميل غير مسجل\"))"
      },
      {
       "column": "P",
       "header": "قيمة الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(H6<>\"ملغي\",N(E6),0))"
      },
      {
       "column": "Q",
       "header": "المدفوع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",N(F6)+SUMIFS('الدفعات'!$C$6:$C$405,'الدفعات'!$B$6:$B$405,A6&\"\"))"
      },
      {
       "column": "R",
       "header": "المتبقي",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(P6-Q6,2))"
      },
      {
       "column": "S",
       "header": "مساحة القطع م²",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('التقطيع'!$H$6:$H$605,'التقطيع'!$A$6:$A$605,A6&\"\"),4))"
      },
      {
       "column": "T",
       "header": "أمتار الشريط",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('التقطيع'!$I$6:$I$605,'التقطيع'!$A$6:$A$605,A6&\"\"),2))"
      },
      {
       "column": "U",
       "header": "هالك مستخدم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N6&\"\"=\"\",'الإعدادات'!$B$6,N6))"
      },
      {
       "column": "V",
       "header": "عدد الألواح",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(S6=0,0,IFERROR(ROUNDUP(ROUND(S6/INDEX('الخامات'!$H$6:$H$65,MATCH(I6&\"\",'الخامات'!$A$6:$A$65,0))*(1+U6),4),0),0)))"
      },
      {
       "column": "W",
       "header": "تكلفة الألواح",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(H6<>\"ملغي\",ROUND(V6*IFERROR(INDEX('الخامات'!$G$6:$G$65,MATCH(I6&\"\",'الخامات'!$A$6:$A$65,0)),0),2),0))"
      },
      {
       "column": "X",
       "header": "تكلفة الشريط",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(H6<>\"ملغي\",ROUND(T6*IFERROR(INDEX('الخامات'!$G$6:$G$65,MATCH(J6&\"\",'الخامات'!$A$6:$A$65,0)),0),2),0))"
      },
      {
       "column": "Y",
       "header": "تكلفة الاكسسوارات",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(H6<>\"ملغي\",ROUND(SUMIFS('الاكسسوارات'!$F$6:$F$405,'الاكسسوارات'!$A$6:$A$405,A6&\"\"),2),0))"
      },
      {
       "column": "Z",
       "header": "تكلفة العمالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(H6<>\"ملغي\",ROUND(N(K6)*'الإعدادات'!$B$7,2),0))"
      },
      {
       "column": "AA",
       "header": "تكلفة الدهان",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(H6<>\"ملغي\",ROUND(N(M6)*IFERROR(INDEX('الخامات'!$G$6:$G$65,MATCH(L6&\"\",'الخامات'!$A$6:$A$65,0)),0),2),0))"
      },
      {
       "column": "AB",
       "header": "إجمالي التكلفة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(W6+X6+Y6+Z6+AA6,2))"
      },
      {
       "column": "AC",
       "header": "الربح",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(P6-AB6,2))"
      },
      {
       "column": "AD",
       "header": "الهامش",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(P6>0,AC6/P6,\"\"))"
      },
      {
       "column": "AE",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(H6=\"ملغي\",\"\",IF(AF6=1,\"متأخر \"&('الإعدادات'!$B$5-G6)&\" يوم\",IF(ISNA(MATCH(I6&\"\",'الخامات'!$A$6:$A$65,0)),\"كود لوح غير موجود\",IF(O6=\"عميل غير مسجل\",\"عميل غير مسجل\",IF(S6=0,\"أدخل قائمة التقطيع\",IF(AND(P6>0,AC6<P6*'الإعدادات'!$B$8),\"هامش منخفض\",\"\")))))))"
      },
      {
       "column": "AF",
       "header": "متأخر؟",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(AND(H6<>\"ملغي\",H6<>\"تم التسليم\",N(G6)>0,N(G6)<'الإعدادات'!$B$5),1,0))"
      },
      {
       "column": "AG",
       "header": "ترتيب",
       "kind": "formula",
       "formula_row_1": "=IF(AF6=1,SUM($AF$6:AF6),\"\")"
      }
     ]
    }
   ]
  },
  {
   "name": "التقطيع",
   "formula_cells": 1800,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 35,
     "capacity_last_row": 605,
     "columns": [
      {
       "column": "A",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "K001",
        "K001",
        "K001"
       ],
       "allowed_values": {
        "from_range": "'الطلبات'!$A$6:$A$305"
       }
      },
      {
       "column": "B",
       "header": "القطعة",
       "kind": "input",
       "examples": [
        "جانب قاعدة",
        "أرضية وسقف قاعدة",
        "ضلفة سفلية"
       ]
      },
      {
       "column": "C",
       "header": "الطول سم",
       "kind": "input",
       "examples": [
        72,
        80,
        70
       ]
      },
      {
       "column": "D",
       "header": "العرض سم",
       "kind": "input",
       "examples": [
        58,
        58,
        40
       ]
      },
      {
       "column": "E",
       "header": "العدد",
       "kind": "input",
       "examples": [
        6,
        6,
        10
       ]
      },
      {
       "column": "F",
       "header": "حواف الطول",
       "kind": "input",
       "examples": [
        1,
        1,
        2
       ]
      },
      {
       "column": "G",
       "header": "حواف العرض",
       "kind": "input",
       "examples": [
        0,
        0,
        2
       ]
      },
      {
       "column": "H",
       "header": "المساحة م²",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(N(C6)*N(D6)*N(E6)/10000,4))"
      },
      {
       "column": "I",
       "header": "أمتار الشريط",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(N(E6)*(N(F6)*N(C6)+N(G6)*N(D6))/100,2))"
      },
      {
       "column": "J",
       "header": "حالة الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الطلبات'!$H$6:$H$305,MATCH(A6&\"\",'الطلبات'!$A$6:$A$305,0))&\"\",\"طلب غير موجود\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "الاكسسوارات",
   "formula_cells": 1600,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 22,
     "capacity_last_row": 405,
     "columns": [
      {
       "column": "A",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "K001",
        "K001",
        "K001"
       ],
       "allowed_values": {
        "from_range": "'الطلبات'!$A$6:$A$305"
       }
      },
      {
       "column": "B",
       "header": "كود الصنف",
       "kind": "input",
       "examples": [
        "H01",
        "H02",
        "H03"
       ],
       "allowed_values": {
        "from_range": "'الخامات'!$A$6:$A$65"
       }
      },
      {
       "column": "C",
       "header": "الكمية",
       "kind": "input",
       "examples": [
        20,
        6,
        16
       ]
      },
      {
       "column": "D",
       "header": "الصنف",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الخامات'!$B$6:$B$65,MATCH(B6&\"\",'الخامات'!$A$6:$A$65,0))&\"\",\"\"))"
      },
      {
       "column": "E",
       "header": "سعر الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الخامات'!$G$6:$G$65,MATCH(B6&\"\",'الخامات'!$A$6:$A$65,0)),0))"
      },
      {
       "column": "F",
       "header": "التكلفة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(N(C6)*E6,2))"
      },
      {
       "column": "G",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(ISNA(MATCH(B6&\"\",'الخامات'!$A$6:$A$65,0)),\"كود غير موجود\",IF(ISNA(MATCH(A6&\"\",'الطلبات'!$A$6:$A$305,0)),\"طلب غير موجود\",\"\")))"
      }
     ]
    }
   ]
  },
  {
   "name": "الدفعات",
   "formula_cells": 400,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 5,
     "capacity_last_row": 405,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-28",
        "2026-11-05",
        "2026-11-06"
       ]
      },
      {
       "column": "B",
       "header": "رقم الطلب",
       "kind": "input",
       "examples": [
        "K001",
        "K003",
        "K002"
       ],
       "allowed_values": {
        "from_range": "'الطلبات'!$A$6:$A$305"
       }
      },
      {
       "column": "C",
       "header": "المبلغ",
       "kind": "input",
       "examples": [
        12500,
        800,
        2000
       ]
      },
      {
       "column": "D",
       "header": "طريقة الدفع",
       "kind": "input",
       "examples": [
        "نقدًا",
        "نقدًا",
        "تحويل بنكي"
       ],
       "allowed_values": [
        "نقدًا",
        "تحويل بنكي",
        "فيزا"
       ]
      },
      {
       "column": "E",
       "header": "ملاحظة",
       "kind": "input"
      },
      {
       "column": "F",
       "header": "العميل",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('الطلبات'!$C$6:$C$305,MATCH(B6&\"\",'الطلبات'!$A$6:$A$305,0))&\"\",\"طلب غير موجود\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "المتابعة",
   "formula_cells": 362,
   "record_tables": [
    {
     "header_row": 6,
     "first_record_row": 7,
     "sample_rows_filled": 0,
     "capacity_last_row": 51,
     "columns": [
      {
       "column": "A",
       "header": "م",
       "kind": "formula",
       "formula_row_1": "=IF(1<=$B$5,1,\"\")"
      },
      {
       "column": "B",
       "header": "الطلب",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$A$6:$A$305,MATCH($A7,'الطلبات'!$AG$6:$AG$305,0)))"
      },
      {
       "column": "C",
       "header": "العميل",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$C$6:$C$305,MATCH($A7,'الطلبات'!$AG$6:$AG$305,0)))"
      },
      {
       "column": "D",
       "header": "التليفون",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$O$6:$O$305,MATCH($A7,'الطلبات'!$AG$6:$AG$305,0)))"
      },
      {
       "column": "E",
       "header": "النوع",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$D$6:$D$305,MATCH($A7,'الطلبات'!$AG$6:$AG$305,0)))"
      },
      {
       "column": "F",
       "header": "الموعد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$G$6:$G$305,MATCH($A7,'الطلبات'!$AG$6:$AG$305,0)))"
      },
      {
       "column": "G",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$H$6:$H$305,MATCH($A7,'الطلبات'!$AG$6:$AG$305,0)))"
      },
      {
       "column": "H",
       "header": "أيام التأخر",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",'الإعدادات'!$B$5-F7)"
      },
      {
       "column": "I",
       "header": "المتبقي",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الطلبات'!$R$6:$R$305,MATCH($A7,'الطلبات'!$AG$6:$AG$305,0)))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد الطلبات المتأخرة",
     "cell": "B5",
     "formula": "=SUM('الطلبات'!$AF$6:$AF$305)"
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 77,
   "record_tables": [
    {
     "header_row": 22,
     "first_record_row": 23,
     "sample_rows_filled": 21,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "البند",
       "kind": "input",
       "examples": [
        "الألواح",
        "شريط الحافة",
        "الاكسسوارات"
       ]
      },
      {
       "column": "B",
       "header": "المبلغ",
       "kind": "formula",
       "formula_row_1": "=SUM('الطلبات'!$W$6:$W$305)"
      },
      {
       "column": "C",
       "header": "النسبة",
       "kind": "formula",
       "formula_row_1": "=IF($B$14=0,\"\",B23/$B$14)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد الطلبات المسجلة",
     "cell": "B5",
     "formula": "=COUNTIF('الطلبات'!$A$6:$A$305,\"?*\")"
    },
    {
     "label": "طلبات ملغية",
     "cell": "B6",
     "formula": "=COUNTIF('الطلبات'!$H$6:$H$305,\"ملغي\")"
    },
    {
     "label": "طلبات مفتوحة (لم تُسلَّم)",
     "cell": "B7",
     "formula": "=B5-B6-COUNTIF('الطلبات'!$H$6:$H$305,\"تم التسليم\")"
    },
    {
     "label": "طلبات متأخرة عن موعدها",
     "cell": "B8",
     "formula": "=SUM('الطلبات'!$AF$6:$AF$305)"
    },
    {
     "label": "قيمة الطلبات (دون الملغي)",
     "cell": "B11",
     "formula": "=SUM('الطلبات'!$P$6:$P$305)"
    },
    {
     "label": "المحصّل (عربون ودفعات)",
     "cell": "B12",
     "formula": "=SUM('الطلبات'!$Q$6:$Q$305)"
    },
    {
     "label": "المتبقي عند العملاء",
     "cell": "B13",
     "formula": "=SUMIF('العملاء'!$F$6:$F$105,\">0\")"
    },
    {
     "label": "تكلفة الطلبات",
     "cell": "B14",
     "formula": "=SUM('الطلبات'!$AB$6:$AB$305)"
    },
    {
     "label": "الربح التقديري",
     "cell": "B15",
     "formula": "=B11-B14"
    },
    {
     "label": "هامش الربح",
     "cell": "B16",
     "formula": "=IF(B11=0,\"\",B15/B11)"
    },
    {
     "label": "ألواح مطلوبة لكل الطلبات (لوح)",
     "cell": "B17",
     "formula": "=SUMIFS('الطلبات'!$V$6:$V$305,'الطلبات'!$H$6:$H$305,\"<>ملغي\")"
    },
    {
     "label": "أمتار شريط الحافة",
     "cell": "B18",
     "formula": "=SUMIFS('الطلبات'!$T$6:$T$305,'الطلبات'!$H$6:$H$305,\"<>ملغي\")"
    },
    {
     "label": "طلبات هامشها منخفض",
     "cell": "B19",
     "formula": "=COUNTIF('الطلبات'!$AE$6:$AE$305,\"هامش منخفض\")"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}