{
 "id": "agricultural-waste-management",
 "file": "softwiro-agricultural-waste-management.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": 1,
   "settings": [
    {
     "label": "تاريخ اليوم",
     "cell": "B4",
     "value": "2026-11-15"
    },
    {
     "label": "مدة نضج الكمبوست (بالأيام)",
     "cell": "B5",
     "value": 45
    },
    {
     "label": "أقصى عدد أيام بين تقليبين",
     "cell": "B6",
     "value": 14
    },
    {
     "label": "تكلفة ساعة الماكينة (جنيه)",
     "cell": "B7",
     "value": 250
    },
    {
     "label": "الشهر الأول في التقرير (أي يوم منه)",
     "cell": "B8",
     "value": "2026-10-01"
    },
    {
     "label": "مسار أكوام الكمبوست",
     "cell": "B10",
     "value": "تسميد (كمبوست)"
    }
   ],
   "results": [
    {
     "label": "أول يوم في الشهر الأول",
     "cell": "B9",
     "formula": "=DATE(YEAR(B8),MONTH(B8),1)"
    }
   ]
  },
  {
   "name": "الأنواع",
   "formula_cells": 80,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 7,
     "capacity_last_row": 25,
     "columns": [
      {
       "column": "A",
       "header": "نوع المخلف",
       "kind": "input",
       "examples": [
        "قش الأرز",
        "حطب القطن",
        "حطب الذرة"
       ]
      },
      {
       "column": "B",
       "header": "المجموعة",
       "kind": "input",
       "examples": [
        "نباتي",
        "نباتي",
        "نباتي"
       ],
       "allowed_values": [
        "نباتي",
        "حيواني"
       ]
      },
      {
       "column": "C",
       "header": "طن لكل فدان (تقدير)",
       "kind": "input",
       "examples": [
        2.5,
        1.2,
        3
       ]
      },
      {
       "column": "D",
       "header": "مساحة المصادر (فدان)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('المصادر'!$E$6:$E$105,'المصادر'!$D$6:$D$105,A6&\"\"))"
      },
      {
       "column": "E",
       "header": "المقدّر (طن)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('المصادر'!$G$6:$G$105,'المصادر'!$D$6:$D$105,A6&\"\"),2))"
      },
      {
       "column": "F",
       "header": "المجمّع فعليًا (طن)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('التجميع'!$E$6:$E$1005,'التجميع'!$D$6:$D$1005,A6&\"\"),2))"
      },
      {
       "column": "G",
       "header": "نسبة المجمّع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N(E6)=0,\"\",F6/E6))"
      }
     ]
    }
   ]
  },
  {
   "name": "المسارات",
   "formula_cells": 150,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 7,
     "capacity_last_row": 20,
     "columns": [
      {
       "column": "A",
       "header": "المسار",
       "kind": "input",
       "examples": [
        "تسميد (كمبوست)",
        "علف بعد المعالجة",
        "كبس وبيع بالات"
       ]
      },
      {
       "column": "B",
       "header": "تحويل عن الحرق؟",
       "kind": "input",
       "examples": [
        "نعم",
        "نعم",
        "نعم"
       ],
       "allowed_values": [
        "نعم",
        "لا"
       ]
      },
      {
       "column": "C",
       "header": "سعر بيع طن الناتج (مثال)",
       "kind": "input",
       "examples": [
        600,
        1500,
        700
       ]
      },
      {
       "column": "D",
       "header": "نسبة الناتج النموذجية",
       "kind": "input",
       "examples": [
        0.5,
        0.85,
        0.9
       ]
      },
      {
       "column": "E",
       "header": "تكلفة معالجة طن المدخل (مثال)",
       "kind": "input",
       "examples": [
        150,
        400,
        120
       ]
      },
      {
       "column": "F",
       "header": "صافي تقديري لطن المدخل",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(N(C6)*N(D6)-N(E6),2))"
      },
      {
       "column": "G",
       "header": "المجمّع (طن)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('التجميع'!$E$6:$E$1005,'التجميع'!$G$6:$G$1005,A6&\"\"),2))"
      },
      {
       "column": "H",
       "header": "تكلفة النقل",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('التجميع'!$F$6:$F$1005,'التجميع'!$G$6:$G$1005,A6&\"\"),2))"
      },
      {
       "column": "I",
       "header": "مدخل المعالجة (طن)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('التصنيع'!$D$6:$D$305,'التصنيع'!$C$6:$C$305,A6&\"\")+IF(A6&\"\"='الإعدادات'!$B$10&\"\",SUM('الأكوام'!$D$6:$D$105),0),2))"
      },
      {
       "column": "J",
       "header": "الناتج (طن)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('التصنيع'!$E$6:$E$305,'التصنيع'!$C$6:$C$305,A6&\"\")+IF(A6&\"\"='الإعدادات'!$B$10&\"\",SUM('الأكوام'!$M$6:$M$105),0),2))"
      },
      {
       "column": "K",
       "header": "تكلفة المعالجة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('التصنيع'!$J$6:$J$305,'التصنيع'!$C$6:$C$305,A6&\"\")+IF(A6&\"\"='الإعدادات'!$B$10&\"\",SUM('الأكوام'!$O$6:$O$105),0),2))"
      },
      {
       "column": "L",
       "header": "الإيراد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('المبيعات'!$G$6:$G$505,'المبيعات'!$B$6:$B$505,A6&\"\"),2))"
      },
      {
       "column": "M",
       "header": "الصافي الفعلي",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(L6-H6-K6,2))"
      },
      {
       "column": "N",
       "header": "التكلفة لكل طن مجمّع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N(G6)=0,\"\",ROUND((H6+K6)/G6,2)))"
      },
      {
       "column": "O",
       "header": "الإيراد لكل طن مجمّع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N(G6)=0,\"\",ROUND(L6/G6,2)))"
      }
     ]
    }
   ]
  },
  {
   "name": "المصادر",
   "formula_cells": 800,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 7,
     "capacity_last_row": 105,
     "columns": [
      {
       "column": "A",
       "header": "الكود",
       "kind": "input",
       "examples": [
        "S01",
        "S02",
        "S03"
       ]
      },
      {
       "column": "B",
       "header": "اسم المصدر",
       "kind": "input",
       "examples": [
        "أرض الحاج سعيد",
        "تعاونية الترعة",
        "مزرعة القطن الشرقية"
       ]
      },
      {
       "column": "C",
       "header": "المنطقة / القرية",
       "kind": "input",
       "examples": [
        "كفر الجمال",
        "عزبة النخل",
        "الناحية الشرقية"
       ]
      },
      {
       "column": "D",
       "header": "النوع الرئيسي",
       "kind": "input",
       "examples": [
        "قش الأرز",
        "قش الأرز",
        "حطب القطن"
       ],
       "allowed_values": {
        "from_range": "'الأنواع'!$A$6:$A$25"
       }
      },
      {
       "column": "E",
       "header": "المساحة (فدان)",
       "kind": "input",
       "examples": [
        40,
        25,
        30
       ]
      },
      {
       "column": "F",
       "header": "طن لكل فدان",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IFERROR(INDEX('الأنواع'!$C$6:$C$25,MATCH(D6&\"\",'الأنواع'!$A$6:$A$25,0)),0))"
      },
      {
       "column": "G",
       "header": "المقدّر (طن)",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",NOT(ISNUMBER(E6))),\"\",ROUND(E6*N(F6),2))"
      },
      {
       "column": "H",
       "header": "المجمّع فعليًا (طن)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('التجميع'!$E$6:$E$1005,'التجميع'!$B$6:$B$1005,A6&\"\"),2))"
      },
      {
       "column": "I",
       "header": "نسبة المجمّع",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N(G6)=0,\"\",H6/G6))"
      },
      {
       "column": "J",
       "header": "المحوّل عن الحرق (طن)",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",ROUND(SUMIFS('التجميع'!$I$6:$I$1005,'التجميع'!$B$6:$B$1005,A6&\"\"),2))"
      },
      {
       "column": "K",
       "header": "نسبة التحويل",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(H6=0,\"\",J6/H6))"
      },
      {
       "column": "L",
       "header": "المتبقي من المقدّر",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",MAX(0,ROUND(N(G6)-H6,2)))"
      },
      {
       "column": "M",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N(F6)=0,\"نوع غير موجود\",IF(H6=0,\"لم يبدأ\",IF(H6>=N(G6),\"اكتمل\",\"جارٍ\"))))"
      }
     ]
    }
   ]
  },
  {
   "name": "التجميع",
   "formula_cells": 4000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 26,
     "capacity_last_row": 1005,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-02",
        "2026-10-04",
        "2026-10-05"
       ]
      },
      {
       "column": "B",
       "header": "كود المصدر",
       "kind": "input",
       "examples": [
        "S01",
        "S01",
        "S05"
       ],
       "allowed_values": {
        "from_range": "'المصادر'!$A$6:$A$105"
       }
      },
      {
       "column": "C",
       "header": "اسم المصدر",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('المصادر'!$B$6:$B$105,MATCH(B6&\"\",'المصادر'!$A$6:$A$105,0))&\"\",\"كود غير موجود\"))"
      },
      {
       "column": "D",
       "header": "نوع المخلف",
       "kind": "input",
       "examples": [
        "قش الأرز",
        "قش الأرز",
        "مصاص وعروش القصب"
       ],
       "allowed_values": {
        "from_range": "'الأنواع'!$A$6:$A$25"
       }
      },
      {
       "column": "E",
       "header": "الكمية (طن)",
       "kind": "input",
       "examples": [
        12,
        10.5,
        14
       ]
      },
      {
       "column": "F",
       "header": "تكلفة النقل",
       "kind": "input",
       "examples": [
        360,
        315,
        560
       ]
      },
      {
       "column": "G",
       "header": "المسار",
       "kind": "input",
       "examples": [
        "كبس وبيع بالات",
        "علف بعد المعالجة",
        "تسميد (كمبوست)"
       ],
       "allowed_values": {
        "from_range": "'المسارات'!$A$6:$A$20"
       }
      },
      {
       "column": "H",
       "header": "تحويل عن الحرق؟",
       "kind": "formula",
       "formula_row_1": "=IF(G6&\"\"=\"\",\"\",IFERROR(INDEX('المسارات'!$B$6:$B$20,MATCH(G6&\"\",'المسارات'!$A$6:$A$20,0))&\"\",\"مسار غير موجود\"))"
      },
      {
       "column": "I",
       "header": "الطن المحوّل",
       "kind": "formula",
       "formula_row_1": "=IF(NOT(ISNUMBER(E6)),\"\",IF(H6=\"نعم\",E6,0))"
      },
      {
       "column": "J",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(AND(A6&\"\"=\"\",B6&\"\"=\"\",E6&\"\"=\"\"),\"\",IF(C6=\"كود غير موجود\",\"كود غير موجود\",IF(H6=\"مسار غير موجود\",\"مسار غير موجود\",IF(NOT(ISNUMBER(E6)),\"الكمية ناقصة\",\"\"))))"
      }
     ]
    }
   ]
  },
  {
   "name": "التصنيع",
   "formula_cells": 1500,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 11,
     "capacity_last_row": 305,
     "columns": [
      {
       "column": "A",
       "header": "رقم الدفعة",
       "kind": "input",
       "examples": [
        "B01",
        "B02",
        "B03"
       ]
      },
      {
       "column": "B",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-05",
        "2026-10-15",
        "2026-10-17"
       ]
      },
      {
       "column": "C",
       "header": "المسار",
       "kind": "input",
       "examples": [
        "كبس وبيع بالات",
        "كبس وبيع بالات",
        "علف بعد المعالجة"
       ],
       "allowed_values": {
        "from_range": "'المسارات'!$A$6:$A$20"
       }
      },
      {
       "column": "D",
       "header": "المدخل (طن)",
       "kind": "input",
       "examples": [
        21,
        11,
        10.5
       ]
      },
      {
       "column": "E",
       "header": "الناتج (طن)",
       "kind": "input",
       "examples": [
        18.8,
        9.8,
        8.9
       ]
      },
      {
       "column": "F",
       "header": "نسبة الناتج",
       "kind": "formula",
       "formula_row_1": "=IF(OR(NOT(ISNUMBER(D6)),NOT(ISNUMBER(E6))),\"\",IF(D6=0,\"\",E6/D6))"
      },
      {
       "column": "G",
       "header": "تكلفة العمالة",
       "kind": "input",
       "examples": [
        900,
        450,
        800
       ]
      },
      {
       "column": "H",
       "header": "ساعات الماكينة",
       "kind": "input",
       "examples": [
        6,
        3,
        4
       ]
      },
      {
       "column": "I",
       "header": "تكلفة الماكينة",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",ROUND(N(H6)*'الإعدادات'!$B$7,2))"
      },
      {
       "column": "J",
       "header": "إجمالي التكلفة",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",ROUND(N(G6)+I6,2))"
      },
      {
       "column": "K",
       "header": "تكلفة طن المدخل",
       "kind": "formula",
       "formula_row_1": "=IF(OR(D6&\"\"=\"\",N(D6)=0),\"\",ROUND(J6/D6,2))"
      },
      {
       "column": "L",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",IF(ISNUMBER(MATCH(C6&\"\",'المسارات'!$A$6:$A$20,0)),IF(N(E6)>N(D6),\"الناتج أكبر من المدخل\",\"\"),\"مسار غير موجود\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "الأكوام",
   "formula_cells": 500,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 5,
     "capacity_last_row": 105,
     "columns": [
      {
       "column": "A",
       "header": "رقم الكوم",
       "kind": "input",
       "examples": [
        "K01",
        "K02",
        "K03"
       ]
      },
      {
       "column": "B",
       "header": "تاريخ البدء",
       "kind": "input",
       "examples": [
        "2026-10-10",
        "2026-10-03",
        "2026-10-01"
       ]
      },
      {
       "column": "C",
       "header": "المكونات",
       "kind": "input",
       "examples": [
        "حطب الذرة + روث",
        "قش أرز + روث",
        "عروش قصب + روث"
       ]
      },
      {
       "column": "D",
       "header": "المدخل (طن)",
       "kind": "input",
       "examples": [
        13,
        20,
        12
       ]
      },
      {
       "column": "E",
       "header": "تقليب 1",
       "kind": "input",
       "examples": [
        "2026-10-24",
        "2026-10-17",
        "2026-10-10"
       ]
      },
      {
       "column": "F",
       "header": "تقليب 2",
       "kind": "input",
       "examples": [
        "2026-11-07",
        "2026-10-31",
        "2026-10-20"
       ]
      },
      {
       "column": "G",
       "header": "تقليب 3",
       "kind": "input",
       "examples": [
        "2026-11-14",
        "2026-10-29"
       ]
      },
      {
       "column": "H",
       "header": "تقليب 4",
       "kind": "input",
       "examples": [
        "2026-11-08"
       ]
      },
      {
       "column": "I",
       "header": "عدد التقليبات",
       "kind": "formula",
       "formula_row_1": "=IF(NOT(ISNUMBER(B6)),\"\",COUNT(E6:H6))"
      },
      {
       "column": "J",
       "header": "تاريخ النضج",
       "kind": "formula",
       "formula_row_1": "=IF(NOT(ISNUMBER(B6)),\"\",B6+'الإعدادات'!$B$5)"
      },
      {
       "column": "K",
       "header": "أيام منذ آخر تقليب",
       "kind": "formula",
       "formula_row_1": "=IF(NOT(ISNUMBER(B6)),\"\",MAX(0,'الإعدادات'!$B$4-MAX(B6,E6,F6,G6,H6)))"
      },
      {
       "column": "L",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(NOT(ISNUMBER(B6)),\"\",IF('الإعدادات'!$B$4>=J6,\"جاهز\",IF(K6>'الإعدادات'!$B$6,\"تأخر التقليب\",\"قيد التحضير\")))"
      },
      {
       "column": "M",
       "header": "الناتج الجاهز (طن)",
       "kind": "input",
       "examples": [
        6.2
       ]
      },
      {
       "column": "N",
       "header": "نسبة الناتج",
       "kind": "formula",
       "formula_row_1": "=IF(OR(NOT(ISNUMBER(M6)),N(D6)=0),\"\",M6/D6)"
      },
      {
       "column": "O",
       "header": "تكلفة التشغيل",
       "kind": "input",
       "examples": [
        650,
        900,
        800
       ]
      }
     ]
    }
   ]
  },
  {
   "name": "المبيعات",
   "formula_cells": 1000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 8,
     "capacity_last_row": 505,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-10-12",
        "2026-10-20",
        "2026-10-31"
       ]
      },
      {
       "column": "B",
       "header": "المسار",
       "kind": "input",
       "examples": [
        "كبس وبيع بالات",
        "علف بعد المعالجة",
        "بيوجاز"
       ],
       "allowed_values": {
        "from_range": "'المسارات'!$A$6:$A$20"
       }
      },
      {
       "column": "C",
       "header": "المنتج",
       "kind": "input",
       "examples": [
        "بالات قش أرز",
        "علف قش معالج",
        "ناتج هضم للتسميد"
       ]
      },
      {
       "column": "D",
       "header": "الكمية (طن)",
       "kind": "input",
       "examples": [
        20,
        8,
        6
       ]
      },
      {
       "column": "E",
       "header": "سعر الطن",
       "kind": "input",
       "examples": [
        700,
        1500,
        300
       ]
      },
      {
       "column": "F",
       "header": "المشتري",
       "kind": "input",
       "examples": [
        "تاجر الأعلاف سيد عبد الله",
        "مزرعة ألبان الوادي",
        "جمعية المزارعين"
       ]
      },
      {
       "column": "G",
       "header": "الإجمالي",
       "kind": "formula",
       "formula_row_1": "=IF(OR(NOT(ISNUMBER(D6)),NOT(ISNUMBER(E6))),\"\",ROUND(D6*E6,2))"
      },
      {
       "column": "H",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(AND(A6&\"\"=\"\",B6&\"\"=\"\",D6&\"\"=\"\"),\"\",IF(ISNUMBER(MATCH(B6&\"\",'المسارات'!$A$6:$A$20,0)),\"\",\"مسار غير موجود\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "الشهري",
   "formula_cells": 142,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 0,
     "capacity_last_row": 18,
     "columns": [
      {
       "column": "A",
       "header": "الشهر",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!$B$9"
      },
      {
       "column": "B",
       "header": "المجمّع (طن)",
       "kind": "formula",
       "formula_row_1": "=ROUND(SUMIFS('التجميع'!$E$6:$E$1005,'التجميع'!$A$6:$A$1005,\">=\"&A6,'التجميع'!$A$6:$A$1005,\"<\"&EDATE(A6,1)),2)"
      },
      {
       "column": "C",
       "header": "المحوّل (طن)",
       "kind": "formula",
       "formula_row_1": "=ROUND(SUMIFS('التجميع'!$I$6:$I$1005,'التجميع'!$A$6:$A$1005,\">=\"&A6,'التجميع'!$A$6:$A$1005,\"<\"&EDATE(A6,1)),2)"
      },
      {
       "column": "D",
       "header": "نسبة التحويل",
       "kind": "formula",
       "formula_row_1": "=IF(B6=0,\"\",C6/B6)"
      },
      {
       "column": "E",
       "header": "تكلفة النقل",
       "kind": "formula",
       "formula_row_1": "=ROUND(SUMIFS('التجميع'!$F$6:$F$1005,'التجميع'!$A$6:$A$1005,\">=\"&A6,'التجميع'!$A$6:$A$1005,\"<\"&EDATE(A6,1)),2)"
      },
      {
       "column": "F",
       "header": "تكلفة المعالجة",
       "kind": "formula",
       "formula_row_1": "=ROUND(SUMIFS('التصنيع'!$J$6:$J$305,'التصنيع'!$B$6:$B$305,\">=\"&A6,'التصنيع'!$B$6:$B$305,\"<\"&EDATE(A6,1))+SUMIFS('الأكوام'!$O$6:$O$105,'الأكوام'!$B$6:$B$105,\">=\"&A6,'الأكوام'!$B$6:$B$105,\"<\"&EDATE(A6,1)),2)"
      },
      {
       "column": "G",
       "header": "إجمالي التكلفة",
       "kind": "formula",
       "formula_row_1": "=E6+F6"
      },
      {
       "column": "H",
       "header": "الإيراد",
       "kind": "formula",
       "formula_row_1": "=ROUND(SUMIFS('المبيعات'!$G$6:$G$505,'المبيعات'!$A$6:$A$505,\">=\"&A6,'المبيعات'!$A$6:$A$505,\"<\"&EDATE(A6,1)),2)"
      },
      {
       "column": "I",
       "header": "الصافي",
       "kind": "formula",
       "formula_row_1": "=H6-G6"
      },
      {
       "column": "J",
       "header": "التكلفة لكل طن",
       "kind": "formula",
       "formula_row_1": "=IF(B6=0,\"\",ROUND(G6/B6,2))"
      },
      {
       "column": "K",
       "header": "الإيراد لكل طن",
       "kind": "formula",
       "formula_row_1": "=IF(B6=0,\"\",ROUND(H6/B6,2))"
      }
     ]
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 25,
   "results": [
    {
     "label": "عدد المصادر",
     "cell": "B5",
     "formula": "=COUNTIF('المصادر'!$A$6:$A$105,\"?*\")"
    },
    {
     "label": "المساحة الكلية (فدان)",
     "cell": "B6",
     "formula": "=SUM('المصادر'!$E$6:$E$105)"
    },
    {
     "label": "المخلفات المقدّرة (طن)",
     "cell": "B7",
     "formula": "=SUM('المصادر'!$G$6:$G$105)"
    },
    {
     "label": "المجمّع فعليًا (طن)",
     "cell": "B8",
     "formula": "=SUM('التجميع'!$E$6:$E$1005)"
    },
    {
     "label": "نسبة المجمّع من المقدّر",
     "cell": "B9",
     "formula": "=IF(B7=0,\"\",B8/B7)"
    },
    {
     "label": "المحوّل عن الحرق (طن)",
     "cell": "B12",
     "formula": "=SUM('التجميع'!$I$6:$I$1005)"
    },
    {
     "label": "الحرق أو الترك بلا معالجة (طن)",
     "cell": "B13",
     "formula": "=ROUND(B8-B12,2)"
    },
    {
     "label": "نسبة التحويل عن الحرق",
     "cell": "B14",
     "formula": "=IF(B8=0,\"\",B12/B8)"
    },
    {
     "label": "تكلفة النقل",
     "cell": "B17",
     "formula": "=SUM('التجميع'!$F$6:$F$1005)"
    },
    {
     "label": "تكلفة المعالجة والتصنيع",
     "cell": "B18",
     "formula": "=SUM('التصنيع'!$J$6:$J$305)+SUM('الأكوام'!$O$6:$O$105)"
    },
    {
     "label": "إجمالي التكلفة",
     "cell": "B19",
     "formula": "=B17+B18"
    },
    {
     "label": "إيراد المبيعات",
     "cell": "B20",
     "formula": "=SUM('المبيعات'!$G$6:$G$505)"
    },
    {
     "label": "الصافي",
     "cell": "B21",
     "formula": "=ROUND(B20-B19,2)"
    },
    {
     "label": "التكلفة لكل طن مجمّع",
     "cell": "B22",
     "formula": "=IF(B8=0,\"\",ROUND(B19/B8,2))"
    },
    {
     "label": "الإيراد لكل طن مجمّع",
     "cell": "B23",
     "formula": "=IF(B8=0,\"\",ROUND(B20/B8,2))"
    },
    {
     "label": "الصافي لكل طن مجمّع",
     "cell": "B24",
     "formula": "=IF(B8=0,\"\",ROUND(B21/B8,2))"
    },
    {
     "label": "عدد دفعات التصنيع",
     "cell": "B27",
     "formula": "=COUNT('التصنيع'!$D$6:$D$305)"
    },
    {
     "label": "مدخل الدفعات (طن)",
     "cell": "B28",
     "formula": "=SUM('التصنيع'!$D$6:$D$305)"
    },
    {
     "label": "ناتج الدفعات (طن)",
     "cell": "B29",
     "formula": "=SUM('التصنيع'!$E$6:$E$305)"
    },
    {
     "label": "متوسط نسبة الناتج",
     "cell": "B30",
     "formula": "=IF(B28=0,\"\",B29/B28)"
    },
    {
     "label": "ساعات الماكينة",
     "cell": "B31",
     "formula": "=SUM('التصنيع'!$H$6:$H$305)"
    },
    {
     "label": "أكوام الكمبوست",
     "cell": "B32",
     "formula": "=COUNT('الأكوام'!$B$6:$B$105)"
    },
    {
     "label": "أكوام جاهزة",
     "cell": "B33",
     "formula": "=COUNTIF('الأكوام'!$L$6:$L$105,\"جاهز\")"
    },
    {
     "label": "أكوام تأخر تقليبها",
     "cell": "B34",
     "formula": "=COUNTIF('الأكوام'!$L$6:$L$105,\"تأخر التقليب\")"
    },
    {
     "label": "أعلى مسار صافيًا",
     "cell": "B35",
     "formula": "=IFERROR(INDEX('المسارات'!$A$6:$A$20,MATCH(MAX('المسارات'!$M$6:$M$20),'المسارات'!$M$6:$M$20,0))&\"\",\"\")"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}