{
 "id": "building-maintenance",
 "file": "softwiro-building-maintenance.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": 4,
   "settings": [
    {
     "label": "اسم العمارة",
     "cell": "B4",
     "value": "عمارة الأمل 12 - شارع الجمهورية"
    },
    {
     "label": "أول شهر في جدول التحصيل (أول يوم فيه)",
     "cell": "B5",
     "value": "2026-07-01"
    },
    {
     "label": "تاريخ اليوم",
     "cell": "B6",
     "value": "2026-11-15"
    },
    {
     "label": "شهر كشف الشفافية (أول يوم فيه)",
     "cell": "B7",
     "value": "2026-10-01"
    },
    {
     "label": "طريقة الاشتراك",
     "cell": "B8",
     "value": "متساوٍ"
    },
    {
     "label": "الاشتراك الأساسي للشقة (للمتساوي)",
     "cell": "B9",
     "value": 100
    },
    {
     "label": "إجمالي المطلوب شهريًا (لطريقة الحصة)",
     "cell": "B10",
     "value": 1500
    },
    {
     "label": "زيادة الأسانسير لكل دور",
     "cell": "B11",
     "value": 10
    },
    {
     "label": "رصيد الخزنة في أول الفترة",
     "cell": "B12",
     "value": 6000
    },
    {
     "label": "تنبيه الصيانة القريبة قبل كم يومًا",
     "cell": "B13",
     "value": 10
    },
    {
     "label": "حد «متأخر كثيرًا» (عدد شهور)",
     "cell": "B14",
     "value": 3
    }
   ],
   "results": [
    {
     "label": "عدد الأشهر المستحقة حتى اليوم",
     "cell": "B16",
     "formula": "=IF(OR(B5=\"\",B6=\"\"),0,MAX(0,MIN(12,(YEAR(B6)-YEAR(B5))*12+MONTH(B6)-MONTH(B5)+1)))"
    },
    {
     "label": "عدد الشقق",
     "cell": "B17",
     "formula": "=SUM('الشقق'!$K$6:$K$45)"
    },
    {
     "label": "أول يوم في شهر اليوم",
     "cell": "B18",
     "formula": "=IF(B6=\"\",\"\",DATE(YEAR(B6),MONTH(B6),1))"
    },
    {
     "label": "أول يوم بعد نهاية الجدول",
     "cell": "B19",
     "formula": "=IF(B5=\"\",\"\",DATE(YEAR(B5),MONTH(B5)+12,1))"
    }
   ]
  },
  {
   "name": "الشقق",
   "formula_cells": 120,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 12,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "رقم الشقة",
       "kind": "input",
       "examples": [
        "1",
        "2",
        "3"
       ]
      },
      {
       "column": "B",
       "header": "الدور",
       "kind": "input",
       "examples": [
        0,
        0,
        1
       ]
      },
      {
       "column": "C",
       "header": "اسم الساكن",
       "kind": "input",
       "examples": [
        "حسن عبد الله",
        "سعاد محمود",
        "محمد الشريف"
       ]
      },
      {
       "column": "D",
       "header": "مالك / مستأجر",
       "kind": "input",
       "examples": [
        "مالك",
        "مستأجر",
        "مالك"
       ],
       "allowed_values": [
        "مالك",
        "مستأجر"
       ]
      },
      {
       "column": "E",
       "header": "الهاتف",
       "kind": "input",
       "examples": [
        "0100 555 0101",
        "0100 555 0102",
        "0111 555 0103"
       ]
      },
      {
       "column": "F",
       "header": "الحصة %",
       "kind": "input",
       "examples": [
        0.07,
        0.07,
        0.08
       ]
      },
      {
       "column": "G",
       "header": "يستخدم الأسانسير؟",
       "kind": "input",
       "examples": [
        "لا",
        "لا",
        "لا"
       ],
       "allowed_values": [
        "نعم",
        "لا"
       ]
      },
      {
       "column": "H",
       "header": "اشتراك خاص (اختياري)",
       "kind": "input",
       "examples": [
        60
       ]
      },
      {
       "column": "I",
       "header": "الحصة الفعلية",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(N(F6)>0,F6,IF('الإعدادات'!$B$17>0,1/'الإعدادات'!$B$17,\"\")))"
      },
      {
       "column": "J",
       "header": "الاشتراك الشهري",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(ISNUMBER(H6),H6,ROUND(IF('الإعدادات'!$B$8=\"حسب الحصة\",'الإعدادات'!$B$10*I6,'الإعدادات'!$B$9)+IF(G6=\"نعم\",'الإعدادات'!$B$11*N(B6),0),2)))"
      },
      {
       "column": "K",
       "header": "عدّاد",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",0,1)"
      }
     ]
    }
   ]
  },
  {
   "name": "التحصيل",
   "formula_cells": 387,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 0,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "P",
       "header": "إجمالي المدفوع",
       "kind": "formula",
       "formula_row_1": "=IF(A6=\"\",\"\",SUM(D6:O6))"
      },
      {
       "column": "Q",
       "header": "المستحق حتى اليوم",
       "kind": "formula",
       "formula_row_1": "=IF(A6=\"\",\"\",C6*'الإعدادات'!$B$16)"
      },
      {
       "column": "R",
       "header": "المتأخر",
       "kind": "formula",
       "formula_row_1": "=IF(A6=\"\",\"\",MAX(0,Q6-P6))"
      },
      {
       "column": "S",
       "header": "أشهر متأخرة",
       "kind": "formula",
       "formula_row_1": "=IF(A6=\"\",\"\",IF(AND(R6>0,N(C6)>0),ROUNDUP(R6/C6,0),0))"
      },
      {
       "column": "T",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6=\"\",\"\",IF(R6>0,IF(S6>='الإعدادات'!$B$14,\"متأخر كثيرًا\",\"متأخر\"),IF(P6>Q6,\"مدفوع مقدمًا\",\"منتظم\")))"
      },
      {
       "column": "U",
       "header": "ترتيب",
       "kind": "formula",
       "formula_row_1": "=IF(N(R6)>0,COUNTIFS($R$6:$R$45,\">\"&R6)+COUNTIFS($R$6:R6,R6),\"\")"
      }
     ]
    }
   ]
  },
  {
   "name": "المتأخرات",
   "formula_cells": 282,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 0,
     "capacity_last_row": 45,
     "columns": [
      {
       "column": "A",
       "header": "م",
       "kind": "formula",
       "formula_row_1": "=IF(1<=$B$3,1,\"\")"
      },
      {
       "column": "B",
       "header": "الشقة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",INDEX('التحصيل'!$A$6:$A$45,MATCH($A6,'التحصيل'!$U$6:$U$45,0)))"
      },
      {
       "column": "C",
       "header": "الساكن",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",INDEX('التحصيل'!$B$6:$B$45,MATCH($A6,'التحصيل'!$U$6:$U$45,0)))"
      },
      {
       "column": "D",
       "header": "الهاتف",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",INDEX('الشقق'!$E$6:$E$45,MATCH($A6,'التحصيل'!$U$6:$U$45,0))&\"\")"
      },
      {
       "column": "E",
       "header": "أشهر متأخرة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",INDEX('التحصيل'!$S$6:$S$45,MATCH($A6,'التحصيل'!$U$6:$U$45,0)))"
      },
      {
       "column": "F",
       "header": "المبلغ المتأخر",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",INDEX('التحصيل'!$R$6:$R$45,MATCH($A6,'التحصيل'!$U$6:$U$45,0)))"
      },
      {
       "column": "G",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",INDEX('التحصيل'!$T$6:$T$45,MATCH($A6,'التحصيل'!$U$6:$U$45,0)))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد الشقق المتأخرة",
     "cell": "B3",
     "formula": "=COUNT('التحصيل'!$U$6:$U$45)"
    },
    {
     "label": "إجمالي المتأخرات",
     "cell": "B4",
     "formula": "=SUM('التحصيل'!$R$6:$R$45)"
    }
   ]
  },
  {
   "name": "المصروفات",
   "formula_cells": 500,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 34,
     "capacity_last_row": 505,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-07-05",
        "2026-07-08",
        "2026-07-12"
       ]
      },
      {
       "column": "B",
       "header": "التصنيف",
       "kind": "input",
       "examples": [
        "مرتب البواب وعامل النظافة",
        "عقد صيانة الأسانسير",
        "كهرباء السلالم والأسانسير"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$D$5:$D$16"
       }
      },
      {
       "column": "C",
       "header": "البيان",
       "kind": "input",
       "examples": [
        "مرتب يوليو",
        "عقد صيانة الأسانسير - يوليو",
        "فاتورة كهرباء السلالم والأسانسير"
       ]
      },
      {
       "column": "D",
       "header": "المبلغ",
       "kind": "input",
       "examples": [
        600,
        400,
        230
       ]
      },
      {
       "column": "E",
       "header": "رقم الإصلاح الكبير",
       "kind": "input",
       "examples": [
        1,
        1,
        2
       ],
       "allowed_values": [
        "1",
        "2",
        "3",
        "4",
        "5",
        "6"
       ]
      },
      {
       "column": "F",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(AND(A6&\"\"=\"\",D6&\"\"=\"\"),\"\",IF(NOT(ISNUMBER(A6)),\"اكتب التاريخ\",IF(D6&\"\"=\"\",\"اكتب المبلغ\",IF(OR(A6<'الإعدادات'!$B$5,A6>='الإعدادات'!$B$19),\"خارج الفترة\",IF(ISNA(MATCH(B6&\"\",'الإعدادات'!$D$5:$D$16,0)),\"تصنيف غير مسجل\",\"\")))))"
      }
     ]
    }
   ]
  },
  {
   "name": "إيرادات أخرى",
   "formula_cells": 400,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 18,
     "capacity_last_row": 205,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-09-01",
        "2026-09-20",
        "2026-09-20"
       ]
      },
      {
       "column": "B",
       "header": "الشقة",
       "kind": "input",
       "examples": [
        "1",
        "2",
        "4"
       ],
       "allowed_values": {
        "from_range": "'الشقق'!$A$6:$A$45"
       }
      },
      {
       "column": "C",
       "header": "النوع",
       "kind": "input",
       "examples": [
        "إيجار السطح أو لوحة إعلان",
        "تحصيل إصلاح كبير",
        "تحصيل إصلاح كبير"
       ],
       "allowed_values": [
        "تحصيل إصلاح كبير",
        "تبرع",
        "إيجار السطح أو لوحة إعلان",
        "غرامة تأخير",
        "أخرى"
       ]
      },
      {
       "column": "D",
       "header": "رقم الإصلاح الكبير",
       "kind": "input",
       "examples": [
        1,
        1,
        1
       ],
       "allowed_values": [
        "1",
        "2",
        "3",
        "4",
        "5",
        "6"
       ]
      },
      {
       "column": "E",
       "header": "المبلغ",
       "kind": "input",
       "examples": [
        500,
        420,
        420
       ]
      },
      {
       "column": "F",
       "header": "ملاحظة",
       "kind": "input",
       "examples": [
        "إيجار لوحة إعلان على السطح",
        "حصة إصلاح المواسير",
        "حصة إصلاح المواسير"
       ]
      },
      {
       "column": "G",
       "header": "الساكن",
       "kind": "formula",
       "formula_row_1": "=IF(B6&\"\"=\"\",\"\",IFERROR(INDEX('الشقق'!$C$6:$C$45,MATCH(B6&\"\",'الشقق'!$A$6:$A$45,0))&\"\",\"شقة غير مسجلة\"))"
      },
      {
       "column": "H",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(AND(A6&\"\"=\"\",E6&\"\"=\"\"),\"\",IF(NOT(ISNUMBER(A6)),\"اكتب التاريخ\",IF(E6&\"\"=\"\",\"اكتب المبلغ\",IF(OR(A6<'الإعدادات'!$B$5,A6>='الإعدادات'!$B$19),\"خارج الفترة\",IF(AND(C6=\"تحصيل إصلاح كبير\",D6&\"\"=\"\"),\"اكتب رقم الإصلاح\",IF(AND(C6=\"تحصيل إصلاح كبير\",B6&\"\"=\"\"),\"اكتب الشقة\",\"\"))))))"
      }
     ]
    }
   ]
  },
  {
   "name": "الصيانة الدورية",
   "formula_cells": 122,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 8,
     "capacity_last_row": 35,
     "columns": [
      {
       "column": "A",
       "header": "المهمة",
       "kind": "input",
       "examples": [
        "خدمة الأسانسير الشهرية",
        "تنظيف خزانات المياه",
        "صيانة طلمبة وموتور المياه"
       ]
      },
      {
       "column": "B",
       "header": "الجهة المنفذة",
       "kind": "input",
       "examples": [
        "شركة الأسانسير",
        "عامل الخزانات",
        "فني المياه"
       ]
      },
      {
       "column": "C",
       "header": "تتكرر كل (شهر)",
       "kind": "input",
       "examples": [
        1,
        6,
        3
       ]
      },
      {
       "column": "D",
       "header": "آخر تنفيذ",
       "kind": "input",
       "examples": [
        "2026-10-20",
        "2026-05-10",
        "2026-09-01"
       ]
      },
      {
       "column": "E",
       "header": "الموعد القادم",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",NOT(ISNUMBER(D6)),N(C6)<=0),\"\",DATE(YEAR(D6),MONTH(D6)+C6,DAY(D6)))"
      },
      {
       "column": "F",
       "header": "أيام متبقية",
       "kind": "formula",
       "formula_row_1": "=IF(E6=\"\",\"\",E6-'الإعدادات'!$B$6)"
      },
      {
       "column": "G",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",IF(E6=\"\",\"بلا تاريخ\",IF(F6<0,\"متأخر\",IF(F6<='الإعدادات'!$B$13,\"قريب\",\"في الميعاد\"))))"
      },
      {
       "column": "H",
       "header": "التكلفة المعتادة",
       "kind": "input",
       "examples": [
        400,
        600,
        220
       ]
      },
      {
       "column": "I",
       "header": "التكلفة السنوية المتوقعة",
       "kind": "formula",
       "formula_row_1": "=IF(OR(A6&\"\"=\"\",N(C6)<=0,H6&\"\"=\"\"),\"\",ROUND(H6*12/C6,2))"
      },
      {
       "column": "J",
       "header": "ملاحظات",
       "kind": "input"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "مهام متأخرة",
     "cell": "B3",
     "formula": "=COUNTIF($G$6:$G$35,\"متأخر\")"
    },
    {
     "label": "مهام قريبة",
     "cell": "B4",
     "formula": "=COUNTIF($G$6:$G$35,\"قريب\")"
    }
   ]
  },
  {
   "name": "الإصلاحات الكبرى",
   "formula_cells": 516,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 48,
     "capacity_last_row": 55,
     "columns": [
      {
       "column": "A",
       "header": "رقم",
       "kind": "input",
       "examples": [
        1,
        2,
        3
       ]
      },
      {
       "column": "B",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-09-12",
        "2026-10-16",
        "الساكن"
       ]
      },
      {
       "column": "C",
       "header": "البيان",
       "kind": "input",
       "examples": [
        "تغيير الماسورة الرئيسية للمياه",
        "دهان السلالم والمدخل",
        "الحصة"
       ]
      },
      {
       "column": "D",
       "header": "التكلفة الإجمالية",
       "kind": "input",
       "examples": [
        6000,
        9600,
        "=\"1) \"&IF(C6&\"\"=\"\",\"\",C6)"
       ]
      },
      {
       "column": "E",
       "header": "مدفوع للمقاول",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",SUMIFS('المصروفات'!$D$6:$D$505,'المصروفات'!$E$6:$E$505,A6))"
      },
      {
       "column": "F",
       "header": "محصّل من الشقق",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",SUMIFS('إيرادات أخرى'!$E$6:$E$205,'إيرادات أخرى'!$D$6:$D$205,A6))"
      },
      {
       "column": "G",
       "header": "متبقٍ للتحصيل",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",D6-F6)"
      },
      {
       "column": "H",
       "header": "متبقٍ للمقاول",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",D6-E6)"
      },
      {
       "column": "I",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",IF(F6>=D6,\"تم التحصيل\",IF(F6>0,\"جارٍ التحصيل\",\"لم يبدأ التحصيل\")))"
      }
     ]
    }
   ]
  },
  {
   "name": "الخزنة",
   "formula_cells": 89,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 0,
     "capacity_last_row": 23,
     "columns": [
      {
       "column": "A",
       "header": "الشهر",
       "kind": "formula",
       "formula_row_1": "=IF('الإعدادات'!$B$5=\"\",\"\",DATE(YEAR('الإعدادات'!$B$5),MONTH('الإعدادات'!$B$5)+0,1))"
      },
      {
       "column": "B",
       "header": "رصيد أول الشهر",
       "kind": "formula",
       "formula_row_1": "=N('الإعدادات'!$B$12)"
      },
      {
       "column": "C",
       "header": "اشتراكات محصلة",
       "kind": "formula",
       "formula_row_1": "=SUM('التحصيل'!D6:D45)"
      },
      {
       "column": "D",
       "header": "إيرادات أخرى",
       "kind": "formula",
       "formula_row_1": "=IF(A6=\"\",0,SUMIFS('إيرادات أخرى'!$E$6:$E$205,'إيرادات أخرى'!$A$6:$A$205,\">=\"&A6,'إيرادات أخرى'!$A$6:$A$205,\"<\"&DATE(YEAR(A6),MONTH(A6)+1,1)))"
      },
      {
       "column": "E",
       "header": "مصروفات",
       "kind": "formula",
       "formula_row_1": "=IF(A6=\"\",0,SUMIFS('المصروفات'!$D$6:$D$505,'المصروفات'!$A$6:$A$505,\">=\"&A6,'المصروفات'!$A$6:$A$505,\"<\"&DATE(YEAR(A6),MONTH(A6)+1,1)))"
      },
      {
       "column": "F",
       "header": "رصيد آخر الشهر",
       "kind": "formula",
       "formula_row_1": "=B6+C6+D6-E6"
      },
      {
       "column": "G",
       "header": "شقق دفعت",
       "kind": "formula",
       "formula_row_1": "=COUNTIF('التحصيل'!D6:D45,\">0\")"
      }
     ]
    }
   ]
  },
  {
   "name": "تحليل المصروفات",
   "formula_cells": 234,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 0,
     "capacity_last_row": 19,
     "columns": [
      {
       "column": "N",
       "header": "الإجمالي",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",SUM(B6:M6))"
      },
      {
       "column": "O",
       "header": "النسبة",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",IF($N$19>0,N6/$N$19,\"\"))"
      },
      {
       "column": "P",
       "header": "المتوسط الشهري",
       "kind": "formula",
       "formula_row_1": "=IF($A6=\"\",\"\",N6/MAX(1,'الإعدادات'!$B$16))"
      }
     ]
    }
   ]
  },
  {
   "name": "كشف الشفافية",
   "formula_cells": 55,
   "record_tables": [
    {
     "header_row": 14,
     "first_record_row": 15,
     "sample_rows_filled": 0,
     "capacity_last_row": 36,
     "columns": [
      {
       "column": "A",
       "header": "البند",
       "kind": "formula",
       "formula_row_1": "=IF('تحليل المصروفات'!A6=\"\",\"\",'تحليل المصروفات'!A6)"
      },
      {
       "column": "B",
       "header": "المبلغ",
       "kind": "formula",
       "formula_row_1": "=IF(OR($B$5=\"\",A15=\"\"),\"\",INDEX('تحليل المصروفات'!$B$6:$M$6,$B$5))"
      },
      {
       "column": "C",
       "header": "النسبة",
       "kind": "formula",
       "formula_row_1": "=IF(OR(B15=\"\",N($B$28)=0),\"\",B15/$B$28)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "العمارة",
     "cell": "B3",
     "formula": "='الإعدادات'!B4&\"\""
    },
    {
     "label": "كشف شهر",
     "cell": "B4",
     "formula": "=IF('الإعدادات'!$B$7=\"\",\"\",DATE(YEAR('الإعدادات'!$B$7),MONTH('الإعدادات'!$B$7),1))"
    },
    {
     "label": "ترتيب الشهر في جدول الخزنة",
     "cell": "B5",
     "formula": "=IFERROR(MATCH(B4,'الخزنة'!$A$6:$A$17,0),\"\")"
    },
    {
     "label": "رصيد أول الشهر",
     "cell": "B7",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الخزنة'!$B$6:$B$17,$B$5))"
    },
    {
     "label": "اشتراكات الشقق المحصلة",
     "cell": "B8",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الخزنة'!$C$6:$C$17,$B$5))"
    },
    {
     "label": "إيرادات أخرى (تبرعات وتحصيل إصلاحات)",
     "cell": "B9",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الخزنة'!$D$6:$D$17,$B$5))"
    },
    {
     "label": "إجمالي الداخل",
     "cell": "B10",
     "formula": "=IF($B$5=\"\",\"\",B8+B9)"
    },
    {
     "label": "إجمالي المصروفات",
     "cell": "B11",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الخزنة'!$E$6:$E$17,$B$5))"
    },
    {
     "label": "رصيد آخر الشهر",
     "cell": "B12",
     "formula": "=IF($B$5=\"\",\"\",INDEX('الخزنة'!$F$6:$F$17,$B$5))"
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 89,
   "record_tables": [
    {
     "header_row": 29,
     "first_record_row": 30,
     "sample_rows_filled": 0,
     "capacity_last_row": 54,
     "columns": [
      {
       "column": "A",
       "header": "الشهر",
       "kind": "formula",
       "formula_row_1": "='الخزنة'!A6"
      },
      {
       "column": "B",
       "header": "المحصل",
       "kind": "formula",
       "formula_row_1": "='الخزنة'!C6"
      },
      {
       "column": "C",
       "header": "المصروفات",
       "kind": "formula",
       "formula_row_1": "='الخزنة'!E6"
      },
      {
       "column": "D",
       "header": "رصيد الخزنة",
       "kind": "formula",
       "formula_row_1": "='الخزنة'!F6"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد الشقق",
     "cell": "B4",
     "formula": "='الإعدادات'!$B$17"
    },
    {
     "label": "إجمالي الاشتراك الشهري المطلوب",
     "cell": "B5",
     "formula": "=SUM('الشقق'!$J$6:$J$45)"
    },
    {
     "label": "المحصل عن شهر اليوم",
     "cell": "B6",
     "formula": "=IFERROR(INDEX('الخزنة'!$C$6:$C$17,'الإعدادات'!$B$16),0)"
    },
    {
     "label": "نسبة التحصيل لشهر اليوم",
     "cell": "B7",
     "formula": "=IF(N(B5)=0,\"\",B6/B5)"
    },
    {
     "label": "إجمالي المحصل من الاشتراكات (كل الفترة)",
     "cell": "B8",
     "formula": "='التحصيل'!P3"
    },
    {
     "label": "إجمالي المستحق حتى اليوم",
     "cell": "B9",
     "formula": "='التحصيل'!Q3"
    },
    {
     "label": "إجمالي المتأخرات",
     "cell": "B10",
     "formula": "='التحصيل'!R3"
    },
    {
     "label": "شقق عليها متأخرات",
     "cell": "B11",
     "formula": "=COUNTIF('التحصيل'!$R$6:$R$45,\">0\")"
    },
    {
     "label": "شقق متأخرة كثيرًا",
     "cell": "B12",
     "formula": "=COUNTIF('التحصيل'!$T$6:$T$45,\"متأخر كثيرًا\")"
    },
    {
     "label": "رصيد الخزنة الحالي",
     "cell": "B14",
     "formula": "='الخزنة'!B20"
    },
    {
     "label": "مصروفات شهر اليوم",
     "cell": "B15",
     "formula": "=IFERROR(INDEX('الخزنة'!$E$6:$E$17,'الإعدادات'!$B$16),0)"
    },
    {
     "label": "إجمالي المصروفات (كل الفترة)",
     "cell": "B16",
     "formula": "='الخزنة'!E18"
    },
    {
     "label": "أكبر بند مصروفات",
     "cell": "B17",
     "formula": "=IFERROR(INDEX('تحليل المصروفات'!$A$6:$A$17,MATCH(MAX('تحليل المصروفات'!$N$6:$N$17),'تحليل المصروفات'!$N$6:$N$17,0)),\"\")"
    },
    {
     "label": "كم شهرًا تكفي الخزنة (بمتوسط المصروف)",
     "cell": "B18",
     "formula": "=IF(N(B16)=0,\"\",ROUND(B14/(B16/MAX(1,'الإعدادات'!$B$16)),1))"
    },
    {
     "label": "مهام صيانة متأخرة",
     "cell": "B20",
     "formula": "='الصيانة الدورية'!B3"
    },
    {
     "label": "مهام صيانة قريبة",
     "cell": "B21",
     "formula": "='الصيانة الدورية'!B4"
    },
    {
     "label": "التكلفة السنوية المتوقعة للصيانة الدورية",
     "cell": "B22",
     "formula": "=SUM('الصيانة الدورية'!$I$6:$I$35)"
    },
    {
     "label": "تكلفة الإصلاحات الكبرى",
     "cell": "B23",
     "formula": "=SUM('الإصلاحات الكبرى'!$D$6:$D$11)"
    },
    {
     "label": "متبقٍ تحصيله من الشقق للإصلاحات",
     "cell": "B24",
     "formula": "=SUM('الإصلاحات الكبرى'!$G$6:$G$11)"
    },
    {
     "label": "متبقٍ دفعه للمقاولين",
     "cell": "B25",
     "formula": "=SUM('الإصلاحات الكبرى'!$H$6:$H$11)"
    },
    {
     "label": "سجلات تحتاج مراجعة (خارج الفترة أو ناقصة)",
     "cell": "B26",
     "formula": "='الخزنة'!B21"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}