{
 "id": "annual-budget-departments",
 "file": "softwiro-annual-budget-departments.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": 163,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 37,
     "capacity_last_row": 48,
     "columns": [
      {
       "column": "A",
       "header": "حتى الشهر المحدد",
       "kind": "input",
       "examples": [
        "الإيرادات",
        "المصروفات",
        "الصافي"
       ]
      },
      {
       "column": "B",
       "header": "خطة الفترة",
       "kind": "formula",
       "formula_row_1": "='حسب القسم'!B35"
      },
      {
       "column": "C",
       "header": "الفعلي",
       "kind": "formula",
       "formula_row_1": "='حسب القسم'!C35"
      },
      {
       "column": "D",
       "header": "الانحراف (لصالحك +)",
       "kind": "formula",
       "formula_row_1": "=C6-B6"
      },
      {
       "column": "E",
       "header": "النسبة",
       "kind": "formula",
       "formula_row_1": "=IF(B6=0,\"\",C6/B6)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "تُقارَن الأشهر من يناير حتى الشهر رقم",
     "cell": "B3",
     "formula": "='الإعدادات'!$B$5"
    }
   ]
  },
  {
   "name": "حسب القسم",
   "formula_cells": 269,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 0,
     "capacity_last_row": 35,
     "columns": [
      {
       "column": "A",
       "header": "القسم",
       "kind": "formula",
       "formula_row_1": "='الأقسام شهريًا'!A8"
      },
      {
       "column": "B",
       "header": "خطة الفترة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",SUMIFS('الأقسام شهريًا'!$B8:$M8,'الأقسام شهريًا'!$B$4:$M$4,\"<=\"&'الإعدادات'!$B$5))"
      },
      {
       "column": "C",
       "header": "الفعلي",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",SUMIFS('الأقسام شهريًا'!$B24:$M24,'الأقسام شهريًا'!$B$4:$M$4,\"<=\"&'الإعدادات'!$B$5))"
      },
      {
       "column": "D",
       "header": "الانحراف (الخطة - الفعلي)",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",B6-C6)"
      },
      {
       "column": "E",
       "header": "نسبة الصرف",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",IF(B6=0,\"\",C6/B6))"
      },
      {
       "column": "F",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",IF(AND(B6=0,C6=0),\"-\",IF(C6>B6,\"تجاوز الخطة\",IF(AND(B6>0,C6/B6>='الإعدادات'!$B$6),\"قريب من الحد\",\"ضمن الخطة\"))))"
      },
      {
       "column": "G",
       "header": "خطة السنة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",'الأقسام شهريًا'!N8)"
      },
      {
       "column": "H",
       "header": "توقع السنة (فعلي + باقي الخطة)",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",C6+G6-B6)"
      },
      {
       "column": "I",
       "header": "فرق التوقع عن الخطة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",G6-H6)"
      },
      {
       "column": "J",
       "header": "المستهلك من السنة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",IF(G6=0,\"\",C6/G6))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "تُقارَن الأشهر من يناير حتى الشهر رقم",
     "cell": "B3",
     "formula": "='الإعدادات'!$B$5"
    }
   ]
  },
  {
   "name": "حسب البند",
   "formula_cells": 221,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 0,
     "capacity_last_row": 28,
     "columns": [
      {
       "column": "A",
       "header": "البند",
       "kind": "formula",
       "formula_row_1": "='البنود شهريًا'!A8"
      },
      {
       "column": "B",
       "header": "النوع",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",'القوائم'!D5)"
      },
      {
       "column": "C",
       "header": "خطة الفترة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",SUMIFS('البنود شهريًا'!$B8:$M8,'البنود شهريًا'!$B$4:$M$4,\"<=\"&'الإعدادات'!$B$5))"
      },
      {
       "column": "D",
       "header": "الفعلي",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",SUMIFS('البنود شهريًا'!$B32:$M32,'البنود شهريًا'!$B$4:$M$4,\"<=\"&'الإعدادات'!$B$5))"
      },
      {
       "column": "E",
       "header": "الانحراف (لصالحك +)",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",IF(B6=\"مصروف\",C6-D6,D6-C6))"
      },
      {
       "column": "F",
       "header": "النسبة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",IF(C6=0,\"\",D6/C6))"
      },
      {
       "column": "G",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",IF(AND(C6=0,D6=0),\"-\",IF(B6=\"مصروف\",IF(D6>C6,\"تجاوز الخطة\",IF(AND(C6>0,D6/C6>='الإعدادات'!$B$6),\"قريب من الحد\",\"ضمن الخطة\")),IF(D6>=C6,\"حقق الخطة\",IF(D6/C6>='الإعدادات'!$B$7,\"قريب من الخطة\",\"أقل من الخطة\")))))"
      },
      {
       "column": "H",
       "header": "خطة السنة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",'البنود شهريًا'!N8)"
      },
      {
       "column": "I",
       "header": "توقع السنة (فعلي + باقي الخطة)",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",D6+H6-C6)"
      },
      {
       "column": "J",
       "header": "فرق التوقع عن الخطة (لصالحك +)",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",IF(B6=\"مصروف\",H6-I6,I6-H6))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "تُقارَن الأشهر من يناير حتى الشهر رقم",
     "cell": "B3",
     "formula": "='الإعدادات'!$B$5"
    }
   ]
  },
  {
   "name": "الأقسام شهريًا",
   "formula_cells": 1086,
   "record_tables": [
    {
     "header_row": 7,
     "first_record_row": 8,
     "sample_rows_filled": 0,
     "capacity_last_row": 100,
     "columns": [
      {
       "column": "A",
       "header": "القسم",
       "kind": "formula",
       "formula_row_1": "=IF('القوائم'!A5&\"\"=\"\",\"\",'القوائم'!A5)"
      },
      {
       "column": "B",
       "header": "يناير",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!D$5:D$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "C",
       "header": "فبراير",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!E$5:E$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "D",
       "header": "مارس",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!F$5:F$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "E",
       "header": "أبريل",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!G$5:G$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "F",
       "header": "مايو",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!H$5:H$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "G",
       "header": "يونيو",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!I$5:I$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "H",
       "header": "يوليو",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!J$5:J$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "I",
       "header": "أغسطس",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!K$5:K$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "J",
       "header": "سبتمبر",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!L$5:L$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "K",
       "header": "أكتوبر",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!M$5:M$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "L",
       "header": "نوفمبر",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!N$5:N$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "M",
       "header": "ديسمبر",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!O$5:O$304,'الخطة'!$A$5:$A$304,$A8,'الخطة'!$C$5:$C$304,\"مصروف\"))"
      },
      {
       "column": "N",
       "header": "إجمالي السنة",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUM(B8:M8))"
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "رقم الشهر",
     "cell": "B4",
     "value": 1
    }
   ]
  },
  {
   "name": "البنود شهريًا",
   "formula_cells": 840,
   "record_tables": [
    {
     "header_row": 7,
     "first_record_row": 8,
     "sample_rows_filled": 0,
     "capacity_last_row": 75,
     "columns": [
      {
       "column": "A",
       "header": "البند",
       "kind": "formula",
       "formula_row_1": "=IF('القوائم'!C5&\"\"=\"\",\"\",'القوائم'!C5)"
      },
      {
       "column": "B",
       "header": "يناير",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!D$5:D$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "C",
       "header": "فبراير",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!E$5:E$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "D",
       "header": "مارس",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!F$5:F$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "E",
       "header": "أبريل",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!G$5:G$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "F",
       "header": "مايو",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!H$5:H$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "G",
       "header": "يونيو",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!I$5:I$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "H",
       "header": "يوليو",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!J$5:J$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "I",
       "header": "أغسطس",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!K$5:K$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "J",
       "header": "سبتمبر",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!L$5:L$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "K",
       "header": "أكتوبر",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!M$5:M$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "L",
       "header": "نوفمبر",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!N$5:N$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "M",
       "header": "ديسمبر",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUMIFS('الخطة'!O$5:O$304,'الخطة'!$B$5:$B$304,$A8))"
      },
      {
       "column": "N",
       "header": "إجمالي السنة",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",SUM(B8:M8))"
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "رقم الشهر",
     "cell": "B4",
     "value": 1
    }
   ]
  },
  {
   "name": "الخطة",
   "formula_cells": 900,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 24,
     "capacity_last_row": 304,
     "columns": [
      {
       "column": "A",
       "header": "القسم",
       "kind": "input",
       "examples": [
        "المبيعات",
        "المبيعات",
        "التشغيل"
       ],
       "allowed_values": {
        "from_range": "'القوائم'!$A$5:$A$16"
       }
      },
      {
       "column": "B",
       "header": "البند",
       "kind": "input",
       "examples": [
        "مبيعات المنتجات",
        "إيرادات الخدمات",
        "إيرادات الخدمات"
       ],
       "allowed_values": {
        "from_range": "'القوائم'!$C$5:$C$24"
       }
      },
      {
       "column": "C",
       "header": "النوع",
       "kind": "formula",
       "formula_row_1": "=IF(B5&\"\"=\"\",\"\",IFERROR(INDEX('القوائم'!$D$5:$D$24,MATCH(B5,'القوائم'!$C$5:$C$24,0)),\"\"))"
      },
      {
       "column": "D",
       "header": "يناير",
       "kind": "input",
       "examples": [
        400000,
        60000,
        45000
       ]
      },
      {
       "column": "E",
       "header": "فبراير",
       "kind": "input",
       "examples": [
        400000,
        60000,
        45000
       ]
      },
      {
       "column": "F",
       "header": "مارس",
       "kind": "input",
       "examples": [
        420000,
        60000,
        45000
       ]
      },
      {
       "column": "G",
       "header": "أبريل",
       "kind": "input",
       "examples": [
        420000,
        62000,
        45000
       ]
      },
      {
       "column": "H",
       "header": "مايو",
       "kind": "input",
       "examples": [
        440000,
        62000,
        45000
       ]
      },
      {
       "column": "I",
       "header": "يونيو",
       "kind": "input",
       "examples": [
        440000,
        62000,
        45000
       ]
      },
      {
       "column": "J",
       "header": "يوليو",
       "kind": "input",
       "examples": [
        420000,
        65000,
        45000
       ]
      },
      {
       "column": "K",
       "header": "أغسطس",
       "kind": "input",
       "examples": [
        420000,
        65000,
        45000
       ]
      },
      {
       "column": "L",
       "header": "سبتمبر",
       "kind": "input",
       "examples": [
        460000,
        65000,
        45000
       ]
      },
      {
       "column": "M",
       "header": "أكتوبر",
       "kind": "input",
       "examples": [
        480000,
        68000,
        45000
       ]
      },
      {
       "column": "N",
       "header": "نوفمبر",
       "kind": "input",
       "examples": [
        520000,
        68000,
        45000
       ]
      },
      {
       "column": "O",
       "header": "ديسمبر",
       "kind": "input",
       "examples": [
        560000,
        68000,
        45000
       ]
      },
      {
       "column": "P",
       "header": "إجمالي السنة",
       "kind": "formula",
       "formula_row_1": "=IF(A5&B5=\"\",\"\",SUM(D5:O5))"
      },
      {
       "column": "Q",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(A5&B5=\"\",\"\",IF(COUNTIF('القوائم'!$A$5:$A$16,A5&\"\")=0,\"قسم غير موجود في القوائم\",IF(C5=\"\",\"بند غير موجود في القوائم\",IF(COUNTIFS($A$5:$A$304,A5&\"\",$B$5:$B$304,B5&\"\")>1,\"صف مكرر لنفس القسم والبند\",\"\"))))"
      }
     ]
    }
   ]
  },
  {
   "name": "الفعلي",
   "formula_cells": 4000,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 249,
     "capacity_last_row": 2004,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-01-15",
        "2026-01-15",
        "2026-01-15"
       ]
      },
      {
       "column": "B",
       "header": "القسم",
       "kind": "input",
       "examples": [
        "الإدارة",
        "الإدارة",
        "التسويق"
       ],
       "allowed_values": {
        "from_range": "'القوائم'!$A$5:$A$16"
       }
      },
      {
       "column": "C",
       "header": "البند",
       "kind": "input",
       "examples": [
        "إيجار ومرافق",
        "سفر وانتقالات",
        "إعلانات وتسويق"
       ],
       "allowed_values": {
        "from_range": "'القوائم'!$C$5:$C$24"
       }
      },
      {
       "column": "D",
       "header": "المبلغ",
       "kind": "input",
       "examples": [
        16740,
        3900,
        45600
       ]
      },
      {
       "column": "E",
       "header": "بيان",
       "kind": "input",
       "examples": [
        "مصروف الشهر",
        "مصروف الشهر",
        "مصروف الشهر"
       ]
      },
      {
       "column": "F",
       "header": "النوع",
       "kind": "formula",
       "formula_row_1": "=IF(C5&\"\"=\"\",\"\",IFERROR(INDEX('القوائم'!$D$5:$D$24,MATCH(C5,'القوائم'!$C$5:$C$24,0)),\"\"))"
      },
      {
       "column": "G",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(D5&\"\"=\"\",\"\",IF(A5&\"\"=\"\",\"اكتب التاريخ\",IF(COUNTIF('القوائم'!$A$5:$A$16,B5&\"\")=0,\"قسم غير موجود\",IF(F5=\"\",\"بند غير موجود\",IF(COUNTIFS('الخطة'!$A$5:$A$304,B5&\"\",'الخطة'!$B$5:$B$304,C5&\"\")=0,\"لا توجد خطة لهذا القسم والبند\",\"\")))))"
      }
     ]
    }
   ]
  },
  {
   "name": "القوائم",
   "formula_cells": 0
  },
  {
   "name": "الإعدادات",
   "formula_cells": 0,
   "settings": [
    {
     "label": "السنة",
     "cell": "B4",
     "value": 2026
    },
    {
     "label": "المقارنة حتى نهاية الشهر رقم (1 إلى 12)",
     "cell": "B5",
     "value": 10
    },
    {
     "label": "نسبة التنبيه للمصروفات (قريب من الحد)",
     "cell": "B6",
     "value": 0.97
    },
    {
     "label": "نسبة التنبيه للإيرادات (قريب من الخطة)",
     "cell": "B7",
     "value": 0.96
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}