{
 "id": "spare-parts-inventory",
 "file": "softwiro-spare-parts-inventory.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,
   "settings": [
    {
     "label": "تاريخ اليوم",
     "cell": "B4",
     "value": "2026-11-13"
    },
    {
     "label": "القطعة الراكدة: أيام بلا صرف",
     "cell": "B5",
     "value": 30
    },
    {
     "label": "أول شهر في ملخص الشهور",
     "cell": "B6",
     "value": "2026-10-01"
    }
   ]
  },
  {
   "name": "الموردون",
   "formula_cells": 120,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 5,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "المورد",
       "kind": "input",
       "examples": [
        "الأمل للمحامل",
        "النصر للفلاتر",
        "المتحدة للكهرباء"
       ]
      },
      {
       "column": "B",
       "header": "التليفون",
       "kind": "input",
       "examples": [
        "0100 111 2201",
        "0122 333 4410",
        "0111 555 0678"
       ]
      },
      {
       "column": "C",
       "header": "مدة التوريد (أيام)",
       "kind": "input",
       "examples": [
        2,
        3,
        5
       ]
      },
      {
       "column": "D",
       "header": "ملاحظات",
       "kind": "input",
       "examples": [
        "دفع آجل 30 يومًا",
        "خصم 5% فوق 5000",
        "دفع نقدي"
       ]
      },
      {
       "column": "E",
       "header": "قيمة المستلم منه",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الاستلام'!$H$6:$H$605,'الاستلام'!$C$6:$C$605,A6&\"\"))"
      },
      {
       "column": "F",
       "header": "عدد التوريدات",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('الاستلام'!$C$6:$C$605,A6&\"\"))"
      },
      {
       "column": "G",
       "header": "عدد القطع عنده",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('القطع'!$L$6:$L$205,A6&\"\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "الآلات",
   "formula_cells": 240,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 8,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "الآلة / السيارة",
       "kind": "input",
       "examples": [
        "مكبس هيدروليكي 100 طن",
        "مولد كاتربيلر 250 ك.ف.أ",
        "كمبروسر أطلس كوبكو"
       ]
      },
      {
       "column": "B",
       "header": "الموقع / القسم",
       "kind": "input",
       "examples": [
        "ورشة التشكيل",
        "غرفة الكهرباء",
        "غرفة الهواء"
       ]
      },
      {
       "column": "C",
       "header": "عدد مرات الصرف",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('الصرف'!$E$6:$E$805,A6&\"\"))"
      },
      {
       "column": "D",
       "header": "قيمة المصروف",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الصرف'!$J$6:$J$805,'الصرف'!$E$6:$E$805,A6&\"\"))"
      },
      {
       "column": "E",
       "header": "قيمة المرتجع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('المرتجعات'!$H$6:$H$205,'المرتجعات'!$E$6:$E$205,A6&\"\"))"
      },
      {
       "column": "F",
       "header": "صافي الاستهلاك",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",D6-E6)"
      },
      {
       "column": "G",
       "header": "% من الإجمالي",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(SUM($F$6:$F$45)=0,\"\",F6/SUM($F$6:$F$45)))"
      },
      {
       "column": "H",
       "header": "الترتيب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS($F$6:$F$45,\">\"&F6)+COUNTIFS($F$6:F6,F6))"
      }
     ]
    }
   ]
  },
  {
   "name": "القطع",
   "formula_cells": 3200,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 19,
     "capacity_last_row": 205,
     "columns": [
      {
       "column": "A",
       "header": "رقم القطعة",
       "kind": "input",
       "examples": [
        "6205-2RS",
        "6308-2Z",
        "OF-2310"
       ]
      },
      {
       "column": "B",
       "header": "الرقم البديل / OEM",
       "kind": "input",
       "examples": [
        "SKF 6205",
        "NSK 6308",
        "CAT 1R-0739"
       ]
      },
      {
       "column": "C",
       "header": "الوصف",
       "kind": "input",
       "examples": [
        "رولمان بلى 6205 بمانع تسرب",
        "رولمان بلى 6308",
        "فلتر زيت محرك"
       ]
      },
      {
       "column": "D",
       "header": "الآلة / الموديل المناسب",
       "kind": "input",
       "examples": [
        "مكبس 100 طن / كمبروسر أطلس",
        "مولد كاتربيلر / خط التعبئة",
        "مولد كاتربيلر 250"
       ]
      },
      {
       "column": "E",
       "header": "التصنيف",
       "kind": "input",
       "examples": [
        "محامل",
        "محامل",
        "فلاتر"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$D$5:$D$14"
       }
      },
      {
       "column": "F",
       "header": "الوحدة",
       "kind": "input",
       "examples": [
        "قطعة",
        "قطعة",
        "قطعة"
       ]
      },
      {
       "column": "G",
       "header": "مكان التخزين",
       "kind": "input",
       "examples": [
        "A-01-03",
        "A-01-04",
        "B-02-01"
       ]
      },
      {
       "column": "H",
       "header": "التكلفة",
       "kind": "input",
       "examples": [
        85,
        190,
        420
       ]
      },
      {
       "column": "I",
       "header": "رصيد افتتاحي",
       "kind": "input",
       "examples": [
        12,
        8,
        5
       ]
      },
      {
       "column": "J",
       "header": "الحد الأدنى",
       "kind": "input",
       "examples": [
        10,
        6,
        4
       ]
      },
      {
       "column": "K",
       "header": "الحد الأقصى",
       "kind": "input",
       "examples": [
        30,
        16,
        12
       ]
      },
      {
       "column": "L",
       "header": "المورد الأساسي",
       "kind": "input",
       "examples": [
        "الأمل للمحامل",
        "الأمل للمحامل",
        "النصر للفلاتر"
       ],
       "allowed_values": {
        "from_range": "'الموردون'!$A$6:$A$45"
       }
      },
      {
       "column": "M",
       "header": "المستلم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الاستلام'!$D$6:$D$605,'الاستلام'!$B$6:$B$605,A6&\"\"))"
      },
      {
       "column": "N",
       "header": "المصروف",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الصرف'!$C$6:$C$805,'الصرف'!$B$6:$B$805,A6&\"\"))"
      },
      {
       "column": "O",
       "header": "المرتجع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('المرتجعات'!$C$6:$C$205,'المرتجعات'!$B$6:$B$205,A6&\"\"))"
      },
      {
       "column": "P",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",N(I6)+M6-N6+O6)"
      },
      {
       "column": "Q",
       "header": "قيمة الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(P6*N(H6),2))"
      },
      {
       "column": "R",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(P6<=0,\"نفد\",IF(P6<=N(J6),\"اطلب\",IF(AND(N(K6)>0,P6>K6),\"فائض\",\"متوفر\"))))"
      },
      {
       "column": "S",
       "header": "كمية الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(OR(R6=\"نفد\",R6=\"اطلب\"),MAX(0,N(K6)-P6),\"\"))"
      },
      {
       "column": "T",
       "header": "تكلفة الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N(S6)>0,ROUND(S6*N(H6),2),\"\"))"
      },
      {
       "column": "U",
       "header": "ترتيب الطلب",
       "kind": "formula",
       "formula_row_1": "=IF(N(T6)>0,COUNTIFS($T$6:$T$205,\">\"&T6)+COUNTIFS($T$6:T6,T6),\"\")"
      },
      {
       "column": "V",
       "header": "آخر صرف",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(COUNTIFS('الصرف'!$B$6:$B$805,A6&\"\")=0,\"\",SUMIFS('الصرف'!$A$6:$A$805,'الصرف'!$B$6:$B$805,A6&\"\",'الصرف'!$K$6:$K$805,1)))"
      },
      {
       "column": "W",
       "header": "أيام منذ آخر صرف",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(V6=\"\",\"\",'الإعدادات'!$B$4-V6))"
      },
      {
       "column": "X",
       "header": "راكد؟",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(P6<=0,\"\",IF(OR(V6=\"\",N(W6)>='الإعدادات'!$B$5),\"راكد\",\"\")))"
      },
      {
       "column": "Y",
       "header": "قيمة الراكد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(X6=\"راكد\",Q6,\"\"))"
      },
      {
       "column": "Z",
       "header": "ترتيب الراكد",
       "kind": "formula",
       "formula_row_1": "=IF(N(Y6)>0,COUNTIFS($Y$6:$Y$205,\">\"&Y6)+COUNTIFS($Y$6:Y6,Y6),\"\")"
      },
      {
       "column": "AA",
       "header": "مطابقة البحث",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",'بحث'!$B$3&\"\"=\"\"),\"\",IF(COUNTIF(A6:D6,\"*\"&'بحث'!$B$3&\"*\")>0,1,0))"
      },
      {
       "column": "AB",
       "header": "ترتيب النتيجة",
       "kind": "formula",
       "formula_row_1": "=IF(AA6=1,COUNTIF($AA$6:AA6,1),\"\")"
      }
     ]
    }
   ]
  },
  {
   "name": "الاستلام",
   "formula_cells": 1200,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 10,
     "capacity_last_row": 605,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-08",
        "2026-10-09",
        "2026-10-12"
       ]
      },
      {
       "column": "B",
       "header": "رقم القطعة",
       "kind": "input",
       "examples": [
        "6205-2RS",
        "OF-2310",
        "FF-1142"
       ],
       "allowed_values": {
        "from_range": "'القطع'!$A$6:$A$205"
       }
      },
      {
       "column": "C",
       "header": "المورد",
       "kind": "input",
       "examples": [
        "الأمل للمحامل",
        "النصر للفلاتر",
        "النصر للفلاتر"
       ],
       "allowed_values": {
        "from_range": "'الموردون'!$A$6:$A$45"
       }
      },
      {
       "column": "D",
       "header": "الكمية",
       "kind": "input",
       "examples": [
        20,
        6,
        22
       ]
      },
      {
       "column": "E",
       "header": "تكلفة الوحدة",
       "kind": "input",
       "examples": [
        85,
        420,
        210
       ]
      },
      {
       "column": "F",
       "header": "رقم أمر الشراء / الفاتورة",
       "kind": "input",
       "examples": [
        "PO-4410",
        "PO-4411",
        "PO-4413"
       ]
      },
      {
       "column": "G",
       "header": "الوصف",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('القطع'!$C$6:$C$205,MATCH(B6&\"\",'القطع'!$A$6:$A$205,0))&\"\",\"رقم غير موجود\"))"
      },
      {
       "column": "H",
       "header": "الإجمالي",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",ROUND(N(D6)*N(E6),2))"
      }
     ]
    }
   ]
  },
  {
   "name": "الصرف",
   "formula_cells": 3200,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 32,
     "capacity_last_row": 805,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-02",
        "2026-10-05",
        "2026-10-06"
       ]
      },
      {
       "column": "B",
       "header": "رقم القطعة",
       "kind": "input",
       "examples": [
        "SW-LP22",
        "OR-KIT",
        "6205-2RS"
       ],
       "allowed_values": {
        "from_range": "'القطع'!$A$6:$A$205"
       }
      },
      {
       "column": "C",
       "header": "الكمية",
       "kind": "input",
       "examples": [
        3,
        1,
        4
       ]
      },
      {
       "column": "D",
       "header": "استلمها",
       "kind": "input",
       "examples": [
        "يوسف عادل",
        "محمود فتحي",
        "أحمد سعيد"
       ]
      },
      {
       "column": "E",
       "header": "الآلة / السيارة",
       "kind": "input",
       "examples": [
        "مولد كاتربيلر 250 ك.ف.أ",
        "لودر كوماتسو WA200",
        "مكبس هيدروليكي 100 طن"
       ],
       "allowed_values": {
        "from_range": "'الآلات'!$A$6:$A$45"
       }
      },
      {
       "column": "F",
       "header": "أمر الشغل",
       "kind": "input",
       "examples": [
        "WO-2101",
        "WO-2104",
        "WO-2105"
       ]
      },
      {
       "column": "G",
       "header": "ملاحظة",
       "kind": "input"
      },
      {
       "column": "H",
       "header": "الوصف",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('القطع'!$C$6:$C$205,MATCH(B6&\"\",'القطع'!$A$6:$A$205,0))&\"\",\"رقم غير موجود\"))"
      },
      {
       "column": "I",
       "header": "تكلفة الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('القطع'!$H$6:$H$205,MATCH(B6&\"\",'القطع'!$A$6:$A$205,0)),0))"
      },
      {
       "column": "J",
       "header": "قيمة المصروف",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",ROUND(N(C6)*I6,2))"
      },
      {
       "column": "K",
       "header": "آخر صرف؟",
       "kind": "formula",
       "formula_row_1": "=IF(OR(B6&\"\"=\"\",NOT(ISNUMBER(A6))),\"\",IF(COUNTIFS($B$6:$B$805,B6&\"\",$A$6:$A$805,\">\"&A6)=0,1,0))"
      }
     ]
    }
   ]
  },
  {
   "name": "المرتجعات",
   "formula_cells": 400,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 4,
     "capacity_last_row": 205,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-14",
        "2026-10-24",
        "2026-11-07"
       ]
      },
      {
       "column": "B",
       "header": "رقم القطعة",
       "kind": "input",
       "examples": [
        "FU-30A",
        "6205-2RS",
        "BP-HI18"
       ],
       "allowed_values": {
        "from_range": "'القطع'!$A$6:$A$205"
       }
      },
      {
       "column": "C",
       "header": "الكمية",
       "kind": "input",
       "examples": [
        5,
        1,
        1
       ]
      },
      {
       "column": "D",
       "header": "أعادها",
       "kind": "input",
       "examples": [
        "محمود فتحي",
        "أحمد سعيد",
        "خالد أبو بكر"
       ]
      },
      {
       "column": "E",
       "header": "الآلة / السيارة",
       "kind": "input",
       "examples": [
        "خط التعبئة 1",
        "مكبس هيدروليكي 100 طن",
        "ميكروباص تويوتا هايس"
       ],
       "allowed_values": {
        "from_range": "'الآلات'!$A$6:$A$45"
       }
      },
      {
       "column": "F",
       "header": "السبب / أمر الشغل",
       "kind": "input",
       "examples": [
        "زيادة عن حاجة الشغل",
        "مقاس غير مطابق",
        "لم تُستعمل"
       ]
      },
      {
       "column": "G",
       "header": "الوصف",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('القطع'!$C$6:$C$205,MATCH(B6&\"\",'القطع'!$A$6:$A$205,0))&\"\",\"رقم غير موجود\"))"
      },
      {
       "column": "H",
       "header": "قيمة المرتجع",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(ROUND(N(C6)*INDEX('القطع'!$H$6:$H$205,MATCH(B6&\"\",'القطع'!$A$6:$A$205,0)),2),0))"
      }
     ]
    }
   ]
  },
  {
   "name": "بحث",
   "formula_cells": 101,
   "record_tables": [
    {
     "header_row": 6,
     "first_record_row": 7,
     "sample_rows_filled": 0,
     "capacity_last_row": 18,
     "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$205,MATCH($A7,'القطع'!$AB$6:$AB$205,0))&\"\")"
      },
      {
       "column": "C",
       "header": "الرقم البديل",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$B$6:$B$205,MATCH($A7,'القطع'!$AB$6:$AB$205,0))&\"\")"
      },
      {
       "column": "D",
       "header": "الوصف",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$C$6:$C$205,MATCH($A7,'القطع'!$AB$6:$AB$205,0))&\"\")"
      },
      {
       "column": "E",
       "header": "الآلة / الموديل",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$D$6:$D$205,MATCH($A7,'القطع'!$AB$6:$AB$205,0))&\"\")"
      },
      {
       "column": "F",
       "header": "مكان التخزين",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$G$6:$G$205,MATCH($A7,'القطع'!$AB$6:$AB$205,0))&\"\")"
      },
      {
       "column": "G",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$P$6:$P$205,MATCH($A7,'القطع'!$AB$6:$AB$205,0)))"
      },
      {
       "column": "H",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$R$6:$R$205,MATCH($A7,'القطع'!$AB$6:$AB$205,0))&\"\")"
      },
      {
       "column": "I",
       "header": "التكلفة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$H$6:$H$205,MATCH($A7,'القطع'!$AB$6:$AB$205,0)))"
      },
      {
       "column": "J",
       "header": "المورد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$L$6:$L$205,MATCH($A7,'القطع'!$AB$6:$AB$205,0))&\"\")"
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "ابحث",
     "cell": "B3",
     "value": "هايس"
    }
   ],
   "results": [
    {
     "label": "عدد النتائج",
     "cell": "B4",
     "formula": "=IF(B3&\"\"=\"\",0,COUNT('القطع'!$AB$6:$AB$205))"
    }
   ]
  },
  {
   "name": "إعادة الطلب",
   "formula_cells": 602,
   "record_tables": [
    {
     "header_row": 6,
     "first_record_row": 7,
     "sample_rows_filled": 0,
     "capacity_last_row": 56,
     "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$205,MATCH($A7,'القطع'!$U$6:$U$205,0))&\"\")"
      },
      {
       "column": "C",
       "header": "الوصف",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$C$6:$C$205,MATCH($A7,'القطع'!$U$6:$U$205,0))&\"\")"
      },
      {
       "column": "D",
       "header": "مكان التخزين",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$G$6:$G$205,MATCH($A7,'القطع'!$U$6:$U$205,0))&\"\")"
      },
      {
       "column": "E",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$P$6:$P$205,MATCH($A7,'القطع'!$U$6:$U$205,0)))"
      },
      {
       "column": "F",
       "header": "الحد الأدنى",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$J$6:$J$205,MATCH($A7,'القطع'!$U$6:$U$205,0)))"
      },
      {
       "column": "G",
       "header": "الكمية المقترحة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$S$6:$S$205,MATCH($A7,'القطع'!$U$6:$U$205,0)))"
      },
      {
       "column": "H",
       "header": "المورد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$L$6:$L$205,MATCH($A7,'القطع'!$U$6:$U$205,0))&\"\")"
      },
      {
       "column": "I",
       "header": "مدة التوريد (يوم)",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",IFERROR(INDEX('الموردون'!$C$6:$C$45,MATCH(H7,'الموردون'!$A$6:$A$45,0)),\"\"))"
      },
      {
       "column": "J",
       "header": "الوصول المتوقع إن طُلبت اليوم",
       "kind": "formula",
       "formula_row_1": "=IF(OR($A7=\"\",I7=\"\"),\"\",'الإعدادات'!$B$4+I7)"
      },
      {
       "column": "K",
       "header": "التكلفة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$T$6:$T$205,MATCH($A7,'القطع'!$U$6:$U$205,0)))"
      },
      {
       "column": "L",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$R$6:$R$205,MATCH($A7,'القطع'!$U$6:$U$205,0))&\"\")"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد القطع المطلوب طلبها",
     "cell": "B4",
     "formula": "=COUNT('القطع'!$U$6:$U$205)"
    },
    {
     "label": "تكلفة الطلب التقديرية",
     "cell": "B5",
     "formula": "=SUM(K7:K56)"
    }
   ]
  },
  {
   "name": "الراكد",
   "formula_cells": 362,
   "record_tables": [
    {
     "header_row": 6,
     "first_record_row": 7,
     "sample_rows_filled": 0,
     "capacity_last_row": 46,
     "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$205,MATCH($A7,'القطع'!$Z$6:$Z$205,0))&\"\")"
      },
      {
       "column": "C",
       "header": "الوصف",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$C$6:$C$205,MATCH($A7,'القطع'!$Z$6:$Z$205,0))&\"\")"
      },
      {
       "column": "D",
       "header": "مكان التخزين",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$G$6:$G$205,MATCH($A7,'القطع'!$Z$6:$Z$205,0))&\"\")"
      },
      {
       "column": "E",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$P$6:$P$205,MATCH($A7,'القطع'!$Z$6:$Z$205,0)))"
      },
      {
       "column": "F",
       "header": "قيمة الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('القطع'!$Q$6:$Q$205,MATCH($A7,'القطع'!$Z$6:$Z$205,0)))"
      },
      {
       "column": "G",
       "header": "آخر صرف",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",IF(INDEX('القطع'!$V$6:$V$205,MATCH($A7,'القطع'!$Z$6:$Z$205,0))=\"\",\"\",INDEX('القطع'!$V$6:$V$205,MATCH($A7,'القطع'!$Z$6:$Z$205,0))))"
      },
      {
       "column": "H",
       "header": "أيام منذ آخر صرف",
       "kind": "formula",
       "formula_row_1": "=IF(OR($A7=\"\",G7=\"\"),\"\",'الإعدادات'!$B$4-G7)"
      },
      {
       "column": "I",
       "header": "الملاحظة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",IF(G7=\"\",\"لم تُصرف قط\",\"بلا صرف\"))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد القطع الراكدة",
     "cell": "B4",
     "formula": "=COUNT('القطع'!$Z$6:$Z$205)"
    },
    {
     "label": "قيمة الراكد",
     "cell": "B5",
     "formula": "=SUM(F7:F46)"
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 74,
   "record_tables": [
    {
     "header_row": 23,
     "first_record_row": 24,
     "sample_rows_filled": 0,
     "capacity_last_row": 46,
     "columns": [
      {
       "column": "A",
       "header": "التصنيف",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!D5"
      },
      {
       "column": "B",
       "header": "عدد القطع",
       "kind": "formula",
       "formula_row_1": "=COUNTIF('القطع'!$E$6:$E$205,A24)"
      },
      {
       "column": "C",
       "header": "القيمة",
       "kind": "formula",
       "formula_row_1": "=SUMIFS('القطع'!$Q$6:$Q$205,'القطع'!$E$6:$E$205,A24)"
      },
      {
       "column": "D",
       "header": "النسبة",
       "kind": "formula",
       "formula_row_1": "=IF($B$6=0,\"\",C24/$B$6)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد القطع",
     "cell": "B5",
     "formula": "=COUNTIF('القطع'!$A$6:$A$205,\"?*\")"
    },
    {
     "label": "قيمة المخزون",
     "cell": "B6",
     "formula": "=SUM('القطع'!$Q$6:$Q$205)"
    },
    {
     "label": "قطع تحت الحد الأدنى (اطلب)",
     "cell": "B7",
     "formula": "=COUNTIF('القطع'!$R$6:$R$205,\"اطلب\")"
    },
    {
     "label": "قطع نفدت",
     "cell": "B8",
     "formula": "=COUNTIF('القطع'!$R$6:$R$205,\"نفد\")"
    },
    {
     "label": "تكلفة إعادة الطلب",
     "cell": "B9",
     "formula": "='إعادة الطلب'!B5"
    },
    {
     "label": "قطع فوق الحد الأقصى (فائض)",
     "cell": "B10",
     "formula": "=COUNTIF('القطع'!$R$6:$R$205,\"فائض\")"
    },
    {
     "label": "قطع راكدة",
     "cell": "B11",
     "formula": "=COUNTIF('القطع'!$X$6:$X$205,\"راكد\")"
    },
    {
     "label": "قيمة الراكد",
     "cell": "B12",
     "formula": "=SUM('القطع'!$Y$6:$Y$205)"
    },
    {
     "label": "نسبة الراكد من قيمة المخزون",
     "cell": "B13",
     "formula": "=IF(B6=0,\"\",B12/B6)"
    },
    {
     "label": "قيمة المستلم من الموردين",
     "cell": "B16",
     "formula": "=SUM('الاستلام'!$H$6:$H$605)"
    },
    {
     "label": "قيمة المصروف",
     "cell": "B17",
     "formula": "=SUM('الصرف'!$J$6:$J$805)"
    },
    {
     "label": "قيمة المرتجع",
     "cell": "B18",
     "formula": "=SUM('المرتجعات'!$H$6:$H$205)"
    },
    {
     "label": "صافي الاستهلاك",
     "cell": "B19",
     "formula": "=B17-B18"
    },
    {
     "label": "عدد عمليات الصرف",
     "cell": "B20",
     "formula": "=COUNT('الصرف'!$A$6:$A$805)"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}