{
 "id": "batch-expiry-inventory",
 "file": "softwiro-batch-expiry-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": 60
    },
    {
     "label": "أول شهر في رسم الحركة الشهرية",
     "cell": "B6",
     "value": "2026-06-01"
    }
   ]
  },
  {
   "name": "الأصناف",
   "formula_cells": 2600,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 11,
     "capacity_last_row": 205,
     "columns": [
      {
       "column": "A",
       "header": "الباركود",
       "kind": "input",
       "examples": [
        "6221000000011",
        "6221000000028",
        "6221000000035"
       ]
      },
      {
       "column": "B",
       "header": "اسم الصنف",
       "kind": "input",
       "examples": [
        "لبن كامل الدسم 1 لتر",
        "زبادي طبيعي 105 جم",
        "زيت ذرة 1 لتر"
       ]
      },
      {
       "column": "C",
       "header": "التصنيف",
       "kind": "input",
       "examples": [
        "ألبان وأجبان",
        "ألبان وأجبان",
        "بقالة"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$D$5:$D$12"
       }
      },
      {
       "column": "D",
       "header": "الوحدة",
       "kind": "input",
       "examples": [
        "علبة",
        "علبة",
        "زجاجة"
       ]
      },
      {
       "column": "E",
       "header": "الحد الأدنى",
       "kind": "input",
       "examples": [
        24,
        48,
        20
       ]
      },
      {
       "column": "F",
       "header": "إجمالي المستلم",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الاستلام'!$E$6:$E$405,'الاستلام'!$B$6:$B$405,A6&\"\"))"
      },
      {
       "column": "G",
       "header": "إجمالي المصروف",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الصرف'!$D$6:$D$1005,'الصرف'!$B$6:$B$1005,A6&\"\"))"
      },
      {
       "column": "H",
       "header": "الرصيد الكلي",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",F6-G6)"
      },
      {
       "column": "I",
       "header": "قيمة المخزون",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('الاستلام'!$M$6:$M$405,'الاستلام'!$B$6:$B$405,A6&\"\"),2))"
      },
      {
       "column": "J",
       "header": "تشغيلات بها رصيد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('الاستلام'!$B$6:$B$405,A6&\"\",'الاستلام'!$J$6:$J$405,\">0\"))"
      },
      {
       "column": "K",
       "header": "أقرب انتهاء",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الاستلام'!$D$6:$D$405,MATCH(A6&\"|1\",'الاستلام'!$R$6:$R$405,0)),\"\"))"
      },
      {
       "column": "L",
       "header": "أيام للأقرب",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",K6=\"\"),\"\",K6-'الإعدادات'!$B$4)"
      },
      {
       "column": "M",
       "header": "أقدم تشغيلة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الاستلام'!$C$6:$C$405,MATCH(A6&\"|1\",'الاستلام'!$R$6:$R$405,0))&\"\",\"\"))"
      },
      {
       "column": "N",
       "header": "كمية منتهية",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الاستلام'!$J$6:$J$405,'الاستلام'!$B$6:$B$405,A6&\"\",'الاستلام'!$L$6:$L$405,\"منتهي\"))"
      },
      {
       "column": "O",
       "header": "كمية قريبة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('الاستلام'!$J$6:$J$405,'الاستلام'!$B$6:$B$405,A6&\"\",'الاستلام'!$L$6:$L$405,\"قريب الانتهاء\"))"
      },
      {
       "column": "P",
       "header": "القيمة المعرضة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('الاستلام'!$N$6:$N$405,'الاستلام'!$B$6:$B$405,A6&\"\"),2))"
      },
      {
       "column": "Q",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(COUNTIFS('الاستلام'!$B$6:$B$405,A6&\"\")=0,\"بلا حركة\",IF(H6<=0,\"نفد\",IF(H6<N(E6),\"اطلب\",\"متوفر\"))))"
      },
      {
       "column": "R",
       "header": "تنبيه الصلاحية",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N6>0,\"يوجد منتهي\",IF(O6>0,\"قريب الانتهاء\",\"\")))"
      }
     ]
    }
   ]
  },
  {
   "name": "الاستلام",
   "formula_cells": 5600,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 19,
     "capacity_last_row": 405,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-03-20",
        "2026-05-10",
        "2026-06-01"
       ]
      },
      {
       "column": "B",
       "header": "الباركود",
       "kind": "input",
       "examples": [
        "6221000000066",
        "6221000000059",
        "6221000000080"
       ],
       "allowed_values": {
        "from_range": "'الأصناف'!$A$6:$A$205"
       }
      },
      {
       "column": "C",
       "header": "رقم التشغيلة",
       "kind": "input",
       "examples": [
        "CR-0326",
        "SH-0526",
        "T-0626"
       ]
      },
      {
       "column": "D",
       "header": "تاريخ الانتهاء",
       "kind": "input",
       "examples": [
        "2026-12-31",
        "2028-05-10",
        "2028-06-01"
       ]
      },
      {
       "column": "E",
       "header": "الكمية",
       "kind": "input",
       "examples": [
        30,
        48,
        240
       ]
      },
      {
       "column": "F",
       "header": "تكلفة الوحدة",
       "kind": "input",
       "examples": [
        40,
        55,
        30
       ]
      },
      {
       "column": "G",
       "header": "المورد / ملاحظة",
       "kind": "input",
       "examples": [
        "شركة النور للتجميل",
        "شركة النور للتجميل",
        "المتحدة للأغذية"
       ]
      },
      {
       "column": "H",
       "header": "اسم الصنف",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('الأصناف'!$B$6:$B$205,MATCH(B6&\"\",'الأصناف'!$A$6:$A$205,0))&\"\",\"باركود غير موجود\"))"
      },
      {
       "column": "I",
       "header": "المصروف منها",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",SUMIFS('الصرف'!$D$6:$D$1005,'الصرف'!$B$6:$B$1005,B6&\"\",'الصرف'!$C$6:$C$1005,C6&\"\"))"
      },
      {
       "column": "J",
       "header": "رصيد التشغيلة",
       "kind": "formula",
       "formula_row_1": "=IF(OR(B6&\"\"=\"\",NOT(ISNUMBER(E6))),\"\",E6-I6)"
      },
      {
       "column": "K",
       "header": "أيام للانتهاء",
       "kind": "formula",
       "formula_row_1": "=IF(OR(J6=\"\",NOT(ISNUMBER(D6))),\"\",D6-'الإعدادات'!$B$4)"
      },
      {
       "column": "L",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(J6=\"\",\"\",IF(J6<0,\"رصيد سالب\",IF(J6=0,\"نفد\",IF(K6=\"\",\"بلا تاريخ\",IF(K6<0,\"منتهي\",IF(K6<='الإعدادات'!$B$5,\"قريب الانتهاء\",\"سليم\"))))))"
      },
      {
       "column": "M",
       "header": "قيمة الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF(J6=\"\",\"\",ROUND(MAX(J6,0)*N(F6),2))"
      },
      {
       "column": "N",
       "header": "القيمة المعرضة",
       "kind": "formula",
       "formula_row_1": "=IF(J6=\"\",\"\",IF(OR(L6=\"منتهي\",L6=\"قريب الانتهاء\"),M6,0))"
      },
      {
       "column": "O",
       "header": "فحص السطر",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IF(H6=\"باركود غير موجود\",\"باركود غير موجود\",IF(C6&\"\"=\"\",\"اكتب رقم التشغيلة\",IF(COUNTIFS($U$6:$U$405,U6)>1,\"تشغيلة مكررة\",IF(L6=\"رصيد سالب\",\"المصروف أكبر من المستلم\",\"\")))))"
      },
      {
       "column": "P",
       "header": "تاريخ ذو رصيد",
       "kind": "formula",
       "formula_row_1": "=IF(AND(ISNUMBER(J6),J6>0,ISNUMBER(D6)),D6,\"\")"
      },
      {
       "column": "Q",
       "header": "ترتيب FEFO",
       "kind": "formula",
       "formula_row_1": "=IF(P6=\"\",\"\",COUNTIFS($B$6:$B$405,B6&\"\",$P$6:$P$405,\"<\"&P6)+COUNTIFS($B$6:B6,B6&\"\",$P$6:P6,P6))"
      },
      {
       "column": "R",
       "header": "مفتاح الترتيب",
       "kind": "formula",
       "formula_row_1": "=IF(Q6=\"\",\"\",B6&\"|\"&Q6)"
      },
      {
       "column": "S",
       "header": "تاريخ تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(AND(ISNUMBER(J6),J6>0,OR(L6=\"منتهي\",L6=\"قريب الانتهاء\")),D6,\"\")"
      },
      {
       "column": "T",
       "header": "ترتيب التنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(S6=\"\",\"\",COUNTIFS($S$6:$S$405,\"<\"&S6)+COUNTIFS($S$6:S6,S6))"
      },
      {
       "column": "U",
       "header": "مفتاح التشغيلة",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",B6&\"|\"&C6)"
      }
     ]
    }
   ]
  },
  {
   "name": "الصرف",
   "formula_cells": 7000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 55,
     "capacity_last_row": 1005,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-04-10",
        "2026-05-22",
        "2026-05-25"
       ]
      },
      {
       "column": "B",
       "header": "الباركود",
       "kind": "input",
       "examples": [
        "6221000000066",
        "6221000000066",
        "6221000000059"
       ],
       "allowed_values": {
        "from_range": "'الأصناف'!$A$6:$A$205"
       }
      },
      {
       "column": "C",
       "header": "رقم التشغيلة",
       "kind": "input",
       "examples": [
        "CR-0326",
        "CR-0326",
        "SH-0526"
       ]
      },
      {
       "column": "D",
       "header": "الكمية",
       "kind": "input",
       "examples": [
        5,
        6,
        6
       ]
      },
      {
       "column": "E",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "بيع",
        "بيع",
        "بيع"
       ],
       "allowed_values": [
        "بيع",
        "تالف",
        "تسوية جرد"
       ]
      },
      {
       "column": "F",
       "header": "ملاحظة",
       "kind": "input",
       "examples": [
        "علب مبعجة"
       ]
      },
      {
       "column": "G",
       "header": "اسم الصنف",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('الأصناف'!$B$6:$B$205,MATCH(B6&\"\",'الأصناف'!$A$6:$A$205,0))&\"\",\"باركود غير موجود\"))"
      },
      {
       "column": "H",
       "header": "فحص السطر",
       "kind": "formula",
       "formula_row_1": "=IF(OR(B6&\"\"=\"\",D6&\"\"=\"\"),\"\",IF(G6=\"باركود غير موجود\",\"باركود غير موجود\",IF(C6&\"\"=\"\",\"اكتب التشغيلة (المقترحة: \"&I6&\")\",IF(ISNA(MATCH(B6&\"|\"&C6,'الاستلام'!$U$6:$U$405,0)),\"تشغيلة غير موجودة\",IF(AND(E6=\"بيع\",K6<>\"\",ISNUMBER(A6),K6<A6),\"صرف تشغيلة منتهية\",IF(AND(ISNUMBER(A6),A6<INDEX('الاستلام'!$A$6:$A$405,MATCH(B6&\"|\"&C6,'الاستلام'!$U$6:$U$405,0))),\"قبل تاريخ استلام التشغيلة\",\"\"))))))"
      },
      {
       "column": "I",
       "header": "التشغيلة المقترحة (FEFO)",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('الاستلام'!$C$6:$C$405,MATCH(B6&\"|1\",'الاستلام'!$R$6:$R$405,0))&\"\",\"لا رصيد\"))"
      },
      {
       "column": "J",
       "header": "انتهاؤها",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('الاستلام'!$D$6:$D$405,MATCH(B6&\"|1\",'الاستلام'!$R$6:$R$405,0)),\"\"))"
      },
      {
       "column": "K",
       "header": "انتهاء المختارة",
       "kind": "formula",
       "formula_row_1": "=IF(OR(B6&\"\"=\"\",C6&\"\"=\"\"),\"\",IFERROR(INDEX('الاستلام'!$D$6:$D$405,MATCH(B6&\"|\"&C6,'الاستلام'!$U$6:$U$405,0)),\"\"))"
      },
      {
       "column": "L",
       "header": "تنبيه FEFO",
       "kind": "formula",
       "formula_row_1": "=IF(OR(E6<>\"بيع\",K6=\"\",NOT(ISNUMBER(A6))),\"\",IF(COUNTIFS('الاستلام'!$B$6:$B$405,B6&\"\",'الاستلام'!$P$6:$P$405,\"<\"&K6,'الاستلام'!$A$6:$A$405,\"<=\"&A6)>0,\"خالف FEFO\",\"\"))"
      },
      {
       "column": "M",
       "header": "تكلفة المصروف",
       "kind": "formula",
       "formula_row_1": "=IF(OR(B6&\"\"=\"\",NOT(ISNUMBER(D6))),\"\",IFERROR(ROUND(D6*INDEX('الاستلام'!$F$6:$F$405,MATCH(B6&\"|\"&C6,'الاستلام'!$U$6:$U$405,0)),2),\"\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "مسح باركود",
   "formula_cells": 61,
   "record_tables": [
    {
     "header_row": 21,
     "first_record_row": 22,
     "sample_rows_filled": 8,
     "capacity_last_row": 29,
     "columns": [
      {
       "column": "A",
       "header": "الترتيب",
       "kind": "input",
       "examples": [
        1,
        2,
        3
       ]
      },
      {
       "column": "B",
       "header": "رقم التشغيلة",
       "kind": "formula",
       "formula_row_1": "=IF($B$5=\"\",\"\",IFERROR(INDEX('الاستلام'!$C$6:$C$405,MATCH($B$4&\"|\"&$A22,'الاستلام'!$R$6:$R$405,0)),\"\"))"
      },
      {
       "column": "C",
       "header": "تاريخ الانتهاء",
       "kind": "formula",
       "formula_row_1": "=IF($B$5=\"\",\"\",IFERROR(INDEX('الاستلام'!$D$6:$D$405,MATCH($B$4&\"|\"&$A22,'الاستلام'!$R$6:$R$405,0)),\"\"))"
      },
      {
       "column": "D",
       "header": "الأيام المتبقية",
       "kind": "formula",
       "formula_row_1": "=IF($B$5=\"\",\"\",IFERROR(INDEX('الاستلام'!$K$6:$K$405,MATCH($B$4&\"|\"&$A22,'الاستلام'!$R$6:$R$405,0)),\"\"))"
      },
      {
       "column": "E",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF($B$5=\"\",\"\",IFERROR(INDEX('الاستلام'!$J$6:$J$405,MATCH($B$4&\"|\"&$A22,'الاستلام'!$R$6:$R$405,0)),\"\"))"
      },
      {
       "column": "F",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($B$5=\"\",\"\",IFERROR(INDEX('الاستلام'!$L$6:$L$405,MATCH($B$4&\"|\"&$A22,'الاستلام'!$R$6:$R$405,0)),\"\"))"
      },
      {
       "column": "G",
       "header": "تكلفة الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF($B$5=\"\",\"\",IFERROR(INDEX('الاستلام'!$F$6:$F$405,MATCH($B$4&\"|\"&$A22,'الاستلام'!$R$6:$R$405,0)),\"\"))"
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "امسح الباركود هنا (أو اكتبه) ثم Enter",
     "cell": "B4",
     "value": "6221000000011"
    }
   ],
   "results": [
    {
     "label": "رقم سطر الصنف (مساعد)",
     "cell": "B5",
     "formula": "=IF(B4&\"\"=\"\",\"\",IFERROR(MATCH(B4&\"\",'الأصناف'!$A$6:$A$205,0),\"\"))"
    },
    {
     "label": "اسم الصنف",
     "cell": "B6",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الأصناف'!$B$6:$B$205,$B$5))"
    },
    {
     "label": "التصنيف / الوحدة",
     "cell": "B7",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الأصناف'!$C$6:$C$205,$B$5)&\" / \"&INDEX('الأصناف'!$D$6:$D$205,$B$5))"
    },
    {
     "label": "الرصيد الكلي",
     "cell": "B8",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الأصناف'!$H$6:$H$205,$B$5))"
    },
    {
     "label": "قيمة المخزون",
     "cell": "B9",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الأصناف'!$I$6:$I$205,$B$5))"
    },
    {
     "label": "عدد التشغيلات التي بها رصيد",
     "cell": "B10",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الأصناف'!$J$6:$J$205,$B$5))"
    },
    {
     "label": "أقدم تشغيلة (اصرفها أولًا)",
     "cell": "B11",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الأصناف'!$M$6:$M$205,$B$5))"
    },
    {
     "label": "تنتهي في",
     "cell": "B12",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الأصناف'!$K$6:$K$205,$B$5))"
    },
    {
     "label": "الأيام المتبقية",
     "cell": "B13",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الأصناف'!$L$6:$L$205,$B$5))"
    },
    {
     "label": "رصيد الأقدم",
     "cell": "B14",
     "formula": "=IF($B$5=\"\",\"\",IFERROR(INDEX('الاستلام'!$J$6:$J$405,MATCH($B$4&\"|1\",'الاستلام'!$R$6:$R$405,0)),\"\"))"
    },
    {
     "label": "حالة الصنف",
     "cell": "B15",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الأصناف'!$Q$6:$Q$205,$B$5))"
    },
    {
     "label": "تنبيه الصلاحية",
     "cell": "B16",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الأصناف'!$R$6:$R$205,$B$5))"
    }
   ]
  },
  {
   "name": "التنبيهات",
   "formula_cells": 602,
   "record_tables": [
    {
     "header_row": 6,
     "first_record_row": 7,
     "sample_rows_filled": 0,
     "capacity_last_row": 66,
     "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('الاستلام'!$B$6:$B$405,MATCH($A7,'الاستلام'!$T$6:$T$405,0))&\"\")"
      },
      {
       "column": "C",
       "header": "الصنف",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الاستلام'!$H$6:$H$405,MATCH($A7,'الاستلام'!$T$6:$T$405,0))&\"\")"
      },
      {
       "column": "D",
       "header": "التشغيلة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الاستلام'!$C$6:$C$405,MATCH($A7,'الاستلام'!$T$6:$T$405,0))&\"\")"
      },
      {
       "column": "E",
       "header": "تاريخ الانتهاء",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الاستلام'!$D$6:$D$405,MATCH($A7,'الاستلام'!$T$6:$T$405,0)))"
      },
      {
       "column": "F",
       "header": "الأيام",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الاستلام'!$K$6:$K$405,MATCH($A7,'الاستلام'!$T$6:$T$405,0)))"
      },
      {
       "column": "G",
       "header": "الرصيد",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الاستلام'!$J$6:$J$405,MATCH($A7,'الاستلام'!$T$6:$T$405,0)))"
      },
      {
       "column": "H",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الاستلام'!$L$6:$L$405,MATCH($A7,'الاستلام'!$T$6:$T$405,0))&\"\")"
      },
      {
       "column": "I",
       "header": "تكلفة الوحدة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الاستلام'!$F$6:$F$405,MATCH($A7,'الاستلام'!$T$6:$T$405,0)))"
      },
      {
       "column": "J",
       "header": "القيمة المعرضة",
       "kind": "formula",
       "formula_row_1": "=IF($A7=\"\",\"\",INDEX('الاستلام'!$N$6:$N$405,MATCH($A7,'الاستلام'!$T$6:$T$405,0)))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "تشغيلات منتهية أو قريبة (لها رصيد)",
     "cell": "B4",
     "formula": "=COUNT('الاستلام'!$T$6:$T$405)"
    },
    {
     "label": "القيمة المعرضة بسعر التكلفة",
     "cell": "B5",
     "formula": "=SUM('الاستلام'!$N$6:$N$405)"
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 65,
   "record_tables": [
    {
     "header_row": 20,
     "first_record_row": 21,
     "sample_rows_filled": 23,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "منتهي",
        "قريب الانتهاء",
        "سليم"
       ]
      },
      {
       "column": "B",
       "header": "عدد التشغيلات",
       "kind": "formula",
       "formula_row_1": "=COUNTIF('الاستلام'!$L$6:$L$405,A21)"
      },
      {
       "column": "C",
       "header": "القيمة",
       "kind": "formula",
       "formula_row_1": "=SUMIFS('الاستلام'!$M$6:$M$405,'الاستلام'!$L$6:$L$405,A21)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد الأصناف",
     "cell": "B5",
     "formula": "=COUNTIF('الأصناف'!$A$6:$A$205,\"?*\")"
    },
    {
     "label": "تشغيلات بها رصيد",
     "cell": "B6",
     "formula": "=COUNTIF('الاستلام'!$J$6:$J$405,\">0\")"
    },
    {
     "label": "قيمة المخزون بسعر التكلفة",
     "cell": "B7",
     "formula": "=SUM('الاستلام'!$M$6:$M$405)"
    },
    {
     "label": "قيمة المنتهي",
     "cell": "B8",
     "formula": "=SUMIFS('الاستلام'!$M$6:$M$405,'الاستلام'!$L$6:$L$405,\"منتهي\")"
    },
    {
     "label": "قيمة القريب من الانتهاء",
     "cell": "B9",
     "formula": "=SUMIFS('الاستلام'!$M$6:$M$405,'الاستلام'!$L$6:$L$405,\"قريب الانتهاء\")"
    },
    {
     "label": "القيمة المعرضة للانتهاء",
     "cell": "B10",
     "formula": "=B8+B9"
    },
    {
     "label": "نسبة المعرض من قيمة المخزون",
     "cell": "B11",
     "formula": "=IF(B7=0,\"\",B10/B7)"
    },
    {
     "label": "تشغيلات منتهية",
     "cell": "B12",
     "formula": "=COUNTIF('الاستلام'!$L$6:$L$405,\"منتهي\")"
    },
    {
     "label": "تشغيلات قريبة الانتهاء",
     "cell": "B13",
     "formula": "=COUNTIF('الاستلام'!$L$6:$L$405,\"قريب الانتهاء\")"
    },
    {
     "label": "أصناف نزلت عن الحد الأدنى",
     "cell": "B14",
     "formula": "=COUNTIF('الأصناف'!$Q$6:$Q$205,\"اطلب\")"
    },
    {
     "label": "أصناف نفدت",
     "cell": "B15",
     "formula": "=COUNTIF('الأصناف'!$Q$6:$Q$205,\"نفد\")"
    },
    {
     "label": "عمليات صرف خالفت FEFO",
     "cell": "B16",
     "formula": "=COUNTIF('الصرف'!$L$6:$L$1005,\"خالف FEFO\")"
    },
    {
     "label": "أسطر تحتاج تصحيحًا",
     "cell": "B17",
     "formula": "=COUNTIF('الاستلام'!$O$6:$O$405,\"?*\")+COUNTIF('الصرف'!$H$6:$H$1005,\"?*\")"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}