{
 "id": "electronics-factory",
 "file": "softwiro-electronics-factory.xlsx",
 "title": "شيت مصنع إلكترونيات: BOM والإنتاج والجودة",
 "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,
   "settings": [
    {
     "label": "تكلفة ساعة العمل (جنيه)",
     "cell": "B4",
     "value": 45
    },
    {
     "label": "نصيب ساعة العمل من المصاريف العامة (جنيه)",
     "cell": "B5",
     "value": 30
    },
    {
     "label": "العائد النهائي المستهدف",
     "cell": "B6",
     "value": 0.95
    },
    {
     "label": "أول شهر في الملخص (اكتب أي يوم منه)",
     "cell": "B7",
     "value": "2026-09-01"
    }
   ]
  },
  {
   "name": "المنتجات",
   "formula_cells": 330,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 3,
     "capacity_last_row": 35,
     "columns": [
      {
       "column": "A",
       "header": "الكود",
       "kind": "input",
       "examples": [
        "P01",
        "P02",
        "P03"
       ]
      },
      {
       "column": "B",
       "header": "المنتج",
       "kind": "input",
       "examples": [
        "باور بانك 10000 مللي أمبير",
        "شاحن حائط سريع 20 وات",
        "لمبة LED ذكية Wi-Fi"
       ]
      },
      {
       "column": "C",
       "header": "ساعات العمل للوحدة",
       "kind": "input",
       "examples": [
        0.5,
        0.3,
        0.25
       ]
      },
      {
       "column": "D",
       "header": "سعر البيع",
       "kind": "input",
       "examples": [
        390,
        145,
        135
       ]
      },
      {
       "column": "E",
       "header": "تكلفة المواد (BOM)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('BOM'!$H$6:$H$205,'BOM'!$A$6:$A$205,A6&\"\"),2))"
      },
      {
       "column": "F",
       "header": "عمالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(N(C6)*'الإعدادات'!$B$4,2))"
      },
      {
       "column": "G",
       "header": "مصاريف عامة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(N(C6)*'الإعدادات'!$B$5,2))"
      },
      {
       "column": "H",
       "header": "تكلفة الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",E6+F6+G6)"
      },
      {
       "column": "I",
       "header": "هامش الربح",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N(D6)>0,(D6-H6)/D6,\"\"))"
      },
      {
       "column": "J",
       "header": "المنتج فعليًا",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('أوامر الإنتاج'!$E$6:$E$205,'أوامر الإنتاج'!$C$6:$C$205,A6&\"\"))"
      },
      {
       "column": "K",
       "header": "السليم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('أوامر الإنتاج'!$M$6:$M$205,'أوامر الإنتاج'!$C$6:$C$205,A6&\"\"))"
      },
      {
       "column": "L",
       "header": "العائد النهائي",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(J6>0,K6/J6,\"\"))"
      },
      {
       "column": "M",
       "header": "تكلفة الوحدة السليمة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(K6>0,ROUND(SUMIFS('أوامر الإنتاج'!$S$6:$S$205,'أوامر الإنتاج'!$C$6:$C$205,A6&\"\")/K6,2),\"\"))"
      },
      {
       "column": "N",
       "header": "مخطط متبقٍ",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('أوامر الإنتاج'!$H$6:$H$205,'أوامر الإنتاج'!$C$6:$C$205,A6&\"\"))"
      },
      {
       "column": "O",
       "header": "هامش على السليم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(AND(ISNUMBER(M6),N(D6)>0),(D6-M6)/D6,\"\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "المكونات",
   "formula_cells": 1000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 15,
     "capacity_last_row": 105,
     "columns": [
      {
       "column": "A",
       "header": "الكود",
       "kind": "input",
       "examples": [
        "C01",
        "C02",
        "C03"
       ]
      },
      {
       "column": "B",
       "header": "المكون",
       "kind": "input",
       "examples": [
        "بطارية ليثيوم أيون 5000 مللي أمبير",
        "لوحة شحن وحماية PCB",
        "منفذ USB-C"
       ]
      },
      {
       "column": "C",
       "header": "الوحدة",
       "kind": "input",
       "examples": [
        "قطعة",
        "قطعة",
        "قطعة"
       ],
       "allowed_values": [
        "قطعة",
        "متر",
        "كجم",
        "لفة",
        "علبة"
       ]
      },
      {
       "column": "D",
       "header": "تكلفة الوحدة",
       "kind": "input",
       "examples": [
        95,
        38,
        6
       ]
      },
      {
       "column": "E",
       "header": "رصيد أول المدة",
       "kind": "input",
       "examples": [
        800,
        500,
        1500
       ]
      },
      {
       "column": "F",
       "header": "الحد الأدنى",
       "kind": "input",
       "examples": [
        100,
        80,
        300
       ]
      },
      {
       "column": "G",
       "header": "المورد",
       "kind": "input",
       "examples": [
        "الشرق للإلكترونيات",
        "الشرق للإلكترونيات",
        "دلتا كوم"
       ]
      },
      {
       "column": "H",
       "header": "الوارد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الوارد'!$C$6:$C$305,'الوارد'!$B$6:$B$305,A6&\"\"))"
      },
      {
       "column": "I",
       "header": "المستهلك",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('BOM'!$J$6:$J$205,'BOM'!$B$6:$B$205,A6&\"\"))"
      },
      {
       "column": "J",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",N(E6)+H6-I6)"
      },
      {
       "column": "K",
       "header": "قيمة الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(J6*N(D6),2))"
      },
      {
       "column": "L",
       "header": "مطلوب للمخطط",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('BOM'!$L$6:$L$205,'BOM'!$B$6:$B$205,A6&\"\"))"
      },
      {
       "column": "M",
       "header": "النقص",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",MAX(0,L6-J6))"
      },
      {
       "column": "N",
       "header": "الكمية المقترحة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",MAX(0,L6+N(F6)-J6))"
      },
      {
       "column": "O",
       "header": "تكلفة الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(N6*N(D6),2))"
      },
      {
       "column": "P",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(J6<0,\"رصيد سالب\",IF(M6>0,\"نقص\",IF(N6>0,\"اطلب\",\"متوفر\"))))"
      },
      {
       "column": "Q",
       "header": "الترتيب",
       "kind": "formula",
       "formula_row_1": "=IF(N(O6)>0,COUNTIFS($O$6:$O$105,\">\"&O6)+COUNTIFS($O$6:O6,O6),\"\")"
      }
     ]
    }
   ]
  },
  {
   "name": "BOM",
   "formula_cells": 2000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 18,
     "capacity_last_row": 205,
     "columns": [
      {
       "column": "A",
       "header": "كود المنتج",
       "kind": "input",
       "examples": [
        "P01",
        "P01",
        "P01"
       ],
       "allowed_values": {
        "from_range": "'المنتجات'!$A$6:$A$35"
       }
      },
      {
       "column": "B",
       "header": "كود المكون",
       "kind": "input",
       "examples": [
        "C01",
        "C02",
        "C03"
       ],
       "allowed_values": {
        "from_range": "'المكونات'!$A$6:$A$105"
       }
      },
      {
       "column": "C",
       "header": "الكمية للوحدة",
       "kind": "input",
       "examples": [
        2,
        1,
        1
       ]
      },
      {
       "column": "D",
       "header": "المنتج",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('المنتجات'!$B$6:$B$35,MATCH(A6&\"\",'المنتجات'!$A$6:$A$35,0)),\"منتج غير موجود\"))"
      },
      {
       "column": "E",
       "header": "المكون",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('المكونات'!$B$6:$B$105,MATCH(B6&\"\",'المكونات'!$A$6:$A$105,0)),\"مكون غير موجود\"))"
      },
      {
       "column": "F",
       "header": "الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('المكونات'!$C$6:$C$105,MATCH(B6&\"\",'المكونات'!$A$6:$A$105,0))&\"\",\"\"))"
      },
      {
       "column": "G",
       "header": "تكلفة الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('المكونات'!$D$6:$D$105,MATCH(B6&\"\",'المكونات'!$A$6:$A$105,0)),0))"
      },
      {
       "column": "H",
       "header": "تكلفة السطر",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",B6&\"\"=\"\"),\"\",ROUND(N(C6)*G6,2))"
      },
      {
       "column": "I",
       "header": "المنتج فعليًا",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('أوامر الإنتاج'!$E$6:$E$205,'أوامر الإنتاج'!$C$6:$C$205,A6&\"\"))"
      },
      {
       "column": "J",
       "header": "المستهلك",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",N(C6)*I6)"
      },
      {
       "column": "K",
       "header": "مخطط متبقٍ",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('أوامر الإنتاج'!$H$6:$H$205,'أوامر الإنتاج'!$C$6:$C$205,A6&\"\"))"
      },
      {
       "column": "L",
       "header": "مطلوب للمخطط",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",N(C6)*K6)"
      },
      {
       "column": "M",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(A6&B6=\"\",\"\",IF(D6=\"منتج غير موجود\",\"منتج غير موجود\",IF(E6=\"مكون غير موجود\",\"مكون غير موجود\",IF(COUNTIFS($A$6:$A$205,A6&\"\",$B$6:$B$205,B6&\"\")>1,\"سطر مكرر\",\"\"))))"
      }
     ]
    }
   ]
  },
  {
   "name": "الوارد",
   "formula_cells": 900,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 6,
     "capacity_last_row": 305,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-12",
        "2026-10-12",
        "2026-10-12"
       ]
      },
      {
       "column": "B",
       "header": "كود المكون",
       "kind": "input",
       "examples": [
        "C01",
        "C03",
        "C04"
       ],
       "allowed_values": {
        "from_range": "'المكونات'!$A$6:$A$105"
       }
      },
      {
       "column": "C",
       "header": "الكمية",
       "kind": "input",
       "examples": [
        400,
        600,
        800
       ]
      },
      {
       "column": "D",
       "header": "سعر الوحدة",
       "kind": "input",
       "examples": [
        96,
        6,
        4
       ]
      },
      {
       "column": "E",
       "header": "المورد",
       "kind": "input",
       "examples": [
        "الشرق للإلكترونيات",
        "دلتا كوم",
        "دلتا كوم"
       ]
      },
      {
       "column": "F",
       "header": "رقم الفاتورة",
       "kind": "input",
       "examples": [
        "ف-2201",
        "ف-2202",
        "ف-2202"
       ]
      },
      {
       "column": "G",
       "header": "المكون",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('المكونات'!$B$6:$B$105,MATCH(B6&\"\",'المكونات'!$A$6:$A$105,0)),\"مكون غير موجود\"))"
      },
      {
       "column": "H",
       "header": "الإجمالي",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",ROUND(N(C6)*N(D6),2))"
      },
      {
       "column": "I",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IF(G6=\"مكون غير موجود\",\"مكون غير موجود\",IF(N(C6)<=0,\"اكتب الكمية\",\"\")))"
      }
     ]
    }
   ]
  },
  {
   "name": "أوامر الإنتاج",
   "formula_cells": 3000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 8,
     "capacity_last_row": 205,
     "columns": [
      {
       "column": "A",
       "header": "رقم الأمر",
       "kind": "input",
       "examples": [
        "PO-101",
        "PO-102",
        "PO-103"
       ]
      },
      {
       "column": "B",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-04",
        "2026-10-08",
        "2026-10-15"
       ]
      },
      {
       "column": "C",
       "header": "كود المنتج",
       "kind": "input",
       "examples": [
        "P01",
        "P02",
        "P03"
       ],
       "allowed_values": {
        "from_range": "'المنتجات'!$A$6:$A$35"
       }
      },
      {
       "column": "D",
       "header": "المخطط",
       "kind": "input",
       "examples": [
        300,
        500,
        400
       ]
      },
      {
       "column": "E",
       "header": "الفعلي",
       "kind": "input",
       "examples": [
        300,
        500,
        400
       ]
      },
      {
       "column": "F",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "منتهي",
        "منتهي",
        "منتهي"
       ],
       "allowed_values": [
        "مخطط",
        "قيد التنفيذ",
        "منتهي"
       ]
      },
      {
       "column": "G",
       "header": "المنتج",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('المنتجات'!$B$6:$B$35,MATCH(C6&\"\",'المنتجات'!$A$6:$A$35,0)),\"منتج غير موجود\"))"
      },
      {
       "column": "H",
       "header": "متبقٍ للتخطيط",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(F6=\"منتهي\",0,MAX(0,N(D6)-N(E6))))"
      },
      {
       "column": "I",
       "header": "ناجح أول فحص",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('فحص الجودة'!$C$6:$C$505,'فحص الجودة'!$B$6:$B$505,A6&\"\"))"
      },
      {
       "column": "J",
       "header": "معاد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('فحص الجودة'!$D$6:$D$505,'فحص الجودة'!$B$6:$B$505,A6&\"\"))"
      },
      {
       "column": "K",
       "header": "مرفوض",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('فحص الجودة'!$E$6:$E$505,'فحص الجودة'!$B$6:$B$505,A6&\"\"))"
      },
      {
       "column": "L",
       "header": "ناجح بعد الإعادة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('فحص الجودة'!$F$6:$F$505,'فحص الجودة'!$B$6:$B$505,A6&\"\"))"
      },
      {
       "column": "M",
       "header": "السليم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",I6+L6)"
      },
      {
       "column": "N",
       "header": "عائد أول فحص",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(I6+J6+K6>0,I6/(I6+J6+K6),\"\"))"
      },
      {
       "column": "O",
       "header": "العائد النهائي",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N(E6)>0,M6/E6,\"\"))"
      },
      {
       "column": "P",
       "header": "تحت الإعادة / لم تُصلَّح",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",J6-L6)"
      },
      {
       "column": "Q",
       "header": "تكلفة المواد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(ROUND(N(E6)*INDEX('المنتجات'!$E$6:$E$35,MATCH(C6&\"\",'المنتجات'!$A$6:$A$35,0)),2),0))"
      },
      {
       "column": "R",
       "header": "عمالة ومصاريف عامة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(ROUND(N(E6)*(INDEX('المنتجات'!$F$6:$F$35,MATCH(C6&\"\",'المنتجات'!$A$6:$A$35,0))+INDEX('المنتجات'!$G$6:$G$35,MATCH(C6&\"\",'المنتجات'!$A$6:$A$35,0))),2),0))"
      },
      {
       "column": "S",
       "header": "تكلفة الأمر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",Q6+R6)"
      },
      {
       "column": "T",
       "header": "تكلفة الوحدة السليمة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(M6>0,ROUND(S6/M6,2),\"\"))"
      },
      {
       "column": "U",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(G6=\"منتج غير موجود\",\"منتج غير موجود\",IF(I6+J6+K6>N(E6),\"الفحص أكثر من الإنتاج\",IF(L6>J6,\"إعادة ناجحة أكثر من المعاد\",IF(AND(F6=\"منتهي\",ISNUMBER(O6),O6<'الإعدادات'!$B$6),\"العائد أقل من المستهدف\",\"\")))))"
      }
     ]
    }
   ]
  },
  {
   "name": "فحص الجودة",
   "formula_cells": 2000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 22,
     "capacity_last_row": 505,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-06",
        "2026-10-07",
        "2026-10-08"
       ]
      },
      {
       "column": "B",
       "header": "رقم الأمر",
       "kind": "input",
       "examples": [
        "PO-101",
        "PO-101",
        "PO-101"
       ],
       "allowed_values": {
        "from_range": "'أوامر الإنتاج'!$A$6:$A$205"
       }
      },
      {
       "column": "C",
       "header": "ناجح أول فحص",
       "kind": "input",
       "examples": [
        150,
        137,
        0
       ]
      },
      {
       "column": "D",
       "header": "معاد",
       "kind": "input",
       "examples": [
        0,
        8,
        0
       ]
      },
      {
       "column": "E",
       "header": "مرفوض",
       "kind": "input",
       "examples": [
        0,
        0,
        5
       ]
      },
      {
       "column": "F",
       "header": "ناجح بعد الإعادة",
       "kind": "input",
       "examples": [
        0,
        0,
        0
       ]
      },
      {
       "column": "G",
       "header": "نوع العيب",
       "kind": "input",
       "examples": [
        "لحام بارد",
        "بطارية ضعيفة",
        "مكون تالف"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$D$5:$D$14"
       }
      },
      {
       "column": "H",
       "header": "ملاحظة",
       "kind": "input",
       "examples": [
        "دفعة 1",
        "دفعة 2",
        "خلايا ضعيفة"
       ]
      },
      {
       "column": "I",
       "header": "المنتج",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('أوامر الإنتاج'!$G$6:$G$205,MATCH(B6&\"\",'أوامر الإنتاج'!$A$6:$A$205,0)),\"أمر غير موجود\"))"
      },
      {
       "column": "J",
       "header": "المفحوص أول مرة",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",N(C6)+N(D6)+N(E6))"
      },
      {
       "column": "K",
       "header": "نسبة النجاح",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IF(J6>0,N(C6)/J6,\"\"))"
      },
      {
       "column": "L",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IF(I6=\"أمر غير موجود\",\"أمر غير موجود\",IF(AND(N(D6)+N(E6)>0,G6&\"\"=\"\"),\"اختر نوع العيب\",\"\")))"
      }
     ]
    }
   ]
  },
  {
   "name": "النواقص",
   "formula_cells": 362,
   "record_tables": [
    {
     "header_row": 6,
     "first_record_row": 7,
     "sample_rows_filled": 0,
     "capacity_last_row": 36,
     "columns": [
      {
       "column": "A",
       "header": "م",
       "kind": "formula",
       "formula_row_1": "=IF(1<=$B$4,1,\"\")"
      },
      {
       "column": "B",
       "header": "الكود",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$A$6:$A$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0))&\"\")"
      },
      {
       "column": "C",
       "header": "المكون",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$B$6:$B$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0))&\"\")"
      },
      {
       "column": "D",
       "header": "الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$C$6:$C$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0))&\"\")"
      },
      {
       "column": "E",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$J$6:$J$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0)))"
      },
      {
       "column": "F",
       "header": "مطلوب للمخطط",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$L$6:$L$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0)))"
      },
      {
       "column": "G",
       "header": "النقص",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$M$6:$M$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0)))"
      },
      {
       "column": "H",
       "header": "الكمية المقترحة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$N$6:$N$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0)))"
      },
      {
       "column": "I",
       "header": "تكلفة الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$D$6:$D$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0)))"
      },
      {
       "column": "J",
       "header": "تكلفة الطلب",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$O$6:$O$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0)))"
      },
      {
       "column": "K",
       "header": "المورد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$G$6:$G$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0))&\"\")"
      },
      {
       "column": "L",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('المكونات'!$P$6:$P$105,MATCH($A7,'المكونات'!$Q$6:$Q$105,0))&\"\")"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "مكونات تحتاج طلبًا",
     "cell": "B4",
     "formula": "=COUNT('المكونات'!$Q$6:$Q$105)"
    },
    {
     "label": "تكلفة الطلب المقترح",
     "cell": "B5",
     "formula": "=SUM('المكونات'!$O$6:$O$105)"
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 159,
   "record_tables": [
    {
     "header_row": 26,
     "first_record_row": 27,
     "sample_rows_filled": 0,
     "capacity_last_row": 59,
     "columns": [
      {
       "column": "A",
       "header": "المنتج",
       "kind": "formula",
       "formula_row_1": "=IF('المنتجات'!A6&\"\"=\"\",\"\",'المنتجات'!B6)"
      },
      {
       "column": "B",
       "header": "منتج فعليًا",
       "kind": "formula",
       "formula_row_1": "=IF($A27=\"\",\"\",'المنتجات'!J6)"
      },
      {
       "column": "C",
       "header": "سليم",
       "kind": "formula",
       "formula_row_1": "=IF($A27=\"\",\"\",'المنتجات'!K6)"
      },
      {
       "column": "D",
       "header": "العائد النهائي",
       "kind": "formula",
       "formula_row_1": "=IF($A27=\"\",\"\",'المنتجات'!L6)"
      },
      {
       "column": "E",
       "header": "مواد",
       "kind": "formula",
       "formula_row_1": "=IF($A27=\"\",\"\",'المنتجات'!E6)"
      },
      {
       "column": "F",
       "header": "عمالة",
       "kind": "formula",
       "formula_row_1": "=IF($A27=\"\",\"\",'المنتجات'!F6)"
      },
      {
       "column": "G",
       "header": "مصاريف عامة",
       "kind": "formula",
       "formula_row_1": "=IF($A27=\"\",\"\",'المنتجات'!G6)"
      },
      {
       "column": "H",
       "header": "تكلفة الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF($A27=\"\",\"\",'المنتجات'!H6)"
      },
      {
       "column": "I",
       "header": "تكلفة الوحدة السليمة",
       "kind": "formula",
       "formula_row_1": "=IF($A27=\"\",\"\",'المنتجات'!M6)"
      },
      {
       "column": "J",
       "header": "سعر البيع",
       "kind": "formula",
       "formula_row_1": "=IF($A27=\"\",\"\",'المنتجات'!D6)"
      },
      {
       "column": "K",
       "header": "هامش على السليم",
       "kind": "formula",
       "formula_row_1": "=IF($A27=\"\",\"\",'المنتجات'!O6)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد المكونات",
     "cell": "B5",
     "formula": "=COUNTIF('المكونات'!$A$6:$A$105,\"?*\")"
    },
    {
     "label": "قيمة رصيد المكونات",
     "cell": "B6",
     "formula": "=SUM('المكونات'!$K$6:$K$105)"
    },
    {
     "label": "مكونات في نقص للأوامر المخططة",
     "cell": "B7",
     "formula": "=COUNTIF('المكونات'!$P$6:$P$105,\"نقص\")"
    },
    {
     "label": "مكونات تحتاج طلبًا (اطلب)",
     "cell": "B8",
     "formula": "=COUNTIF('المكونات'!$P$6:$P$105,\"اطلب\")"
    },
    {
     "label": "تكلفة الطلب المقترح",
     "cell": "B9",
     "formula": "='النواقص'!B5"
    },
    {
     "label": "مشتريات المكونات المسجلة",
     "cell": "B10",
     "formula": "=SUM('الوارد'!$H$6:$H$305)"
    },
    {
     "label": "أوامر الإنتاج",
     "cell": "B13",
     "formula": "=COUNTIF('أوامر الإنتاج'!$A$6:$A$205,\"?*\")"
    },
    {
     "label": "أوامر مخططة لم تبدأ",
     "cell": "B14",
     "formula": "=COUNTIF('أوامر الإنتاج'!$F$6:$F$205,\"مخطط\")"
    },
    {
     "label": "وحدات منتجة",
     "cell": "B15",
     "formula": "=SUM('أوامر الإنتاج'!$E$6:$E$205)"
    },
    {
     "label": "وحدات سليمة",
     "cell": "B16",
     "formula": "=SUM('أوامر الإنتاج'!$M$6:$M$205)"
    },
    {
     "label": "العائد النهائي",
     "cell": "B17",
     "formula": "=IF(B15=0,\"\",B16/B15)"
    },
    {
     "label": "عائد أول فحص",
     "cell": "B18",
     "formula": "=IF(SUM('أوامر الإنتاج'!$I$6:$I$205)+SUM('أوامر الإنتاج'!$J$6:$J$205)+SUM('أوامر الإنتاج'!$K$6:$K$205)=0,\"\",SUM('أوامر الإنتاج'!$I$6:$I$205)/(SUM('أوامر الإنتاج'!$I$6:$I$205)+SUM('أوامر الإنتاج'!$J$6:$J$205)+SUM('أوامر الإنتاج'!$K$6:$K$205)))"
    },
    {
     "label": "وحدات مرفوضة",
     "cell": "B19",
     "formula": "=SUM('أوامر الإنتاج'!$K$6:$K$205)"
    },
    {
     "label": "تحت الإعادة / لم تُصلَّح",
     "cell": "B20",
     "formula": "=SUM('أوامر الإنتاج'!$P$6:$P$205)"
    },
    {
     "label": "تكلفة الإنتاج الإجمالية",
     "cell": "B21",
     "formula": "=SUM('أوامر الإنتاج'!$S$6:$S$205)"
    },
    {
     "label": "متوسط تكلفة الوحدة السليمة",
     "cell": "B22",
     "formula": "=IF(B16=0,\"\",B21/B16)"
    },
    {
     "label": "وحدات مخططة متبقية",
     "cell": "B23",
     "formula": "=SUM('أوامر الإنتاج'!$H$6:$H$205)"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}