{
 "id": "weekly-study-routine",
 "file": "softwiro-weekly-study-routine.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": 147,
   "record_tables": [
    {
     "header_row": 8,
     "first_record_row": 9,
     "sample_rows_filled": 0,
     "capacity_last_row": 34,
     "columns": [
      {
       "column": "A",
       "header": "المادة",
       "kind": "formula",
       "formula_row_1": "=IF('المواد'!A5&\"\"=\"\",\"\",'المواد'!A5)"
      },
      {
       "column": "B",
       "header": "ساعات مخططة",
       "kind": "formula",
       "formula_row_1": "=IF($A9&\"\"=\"\",\"\",SUMIFS('الجدول'!$D$5:$D$1004,'الجدول'!$C$5:$C$1004,$A9&\"\",'الجدول'!$A$5:$A$1004,\">=\"&'الإعدادات'!$B$4,'الجدول'!$A$5:$A$1004,\"<\"&('الإعدادات'!$B$4+7))/60)"
      },
      {
       "column": "C",
       "header": "ساعات فعلية",
       "kind": "formula",
       "formula_row_1": "=IF($A9&\"\"=\"\",\"\",SUMIFS('الجدول'!$E$5:$E$1004,'الجدول'!$C$5:$C$1004,$A9&\"\",'الجدول'!$A$5:$A$1004,\">=\"&'الإعدادات'!$B$4,'الجدول'!$A$5:$A$1004,\"<\"&('الإعدادات'!$B$4+7))/60)"
      },
      {
       "column": "D",
       "header": "نسبة التنفيذ",
       "kind": "formula",
       "formula_row_1": "=IF($A9&\"\"=\"\",\"\",IF(B9=0,\"\",C9/B9))"
      },
      {
       "column": "E",
       "header": "الهدف الأسبوعي",
       "kind": "formula",
       "formula_row_1": "=IF($A9&\"\"=\"\",\"\",N('المواد'!B5))"
      },
      {
       "column": "F",
       "header": "الفرق عن الهدف",
       "kind": "formula",
       "formula_row_1": "=IF($A9&\"\"=\"\",\"\",IF(E9=0,\"\",C9-E9))"
      },
      {
       "column": "G",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A9&\"\"=\"\",\"\",IF(B9=0,IF(C9>0,\"ذاكرت بدون خطة\",\"غير مخطط\"),IF(C9<B9*'الإعدادات'!$B$5,\"أقل من المخطط\",IF(AND(E9>0,C9<E9),\"أقل من الهدف\",\"تمام\"))))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "من",
     "cell": "B3",
     "formula": "='الإعدادات'!$B$4"
    },
    {
     "label": "إلى",
     "cell": "B4",
     "formula": "='الإعدادات'!$B$4+6"
    }
   ]
  },
  {
   "name": "الجدول",
   "formula_cells": 2000,
   "record_tables": [
    {
     "header_row": 4,
     "first_record_row": 5,
     "sample_rows_filled": 13,
     "capacity_last_row": 1004,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-11-07",
        "2026-11-07",
        "2026-11-08"
       ]
      },
      {
       "column": "B",
       "header": "اليوم",
       "kind": "formula",
       "formula_row_1": "=IF(A5&\"\"=\"\",\"\",CHOOSE(WEEKDAY(A5),\"الأحد\",\"الاثنين\",\"الثلاثاء\",\"الأربعاء\",\"الخميس\",\"الجمعة\",\"السبت\"))"
      },
      {
       "column": "C",
       "header": "المادة",
       "kind": "input",
       "examples": [
        "رياضيات",
        "فيزياء",
        "لغة عربية"
       ],
       "allowed_values": {
        "from_range": "'المواد'!$A$5:$A$19"
       }
      },
      {
       "column": "D",
       "header": "دقائق مخططة",
       "kind": "input",
       "examples": [
        90,
        60,
        60
       ]
      },
      {
       "column": "E",
       "header": "دقائق فعلية",
       "kind": "input",
       "examples": [
        90,
        45,
        60
       ]
      },
      {
       "column": "F",
       "header": "تمت",
       "kind": "input",
       "examples": [
        "نعم",
        "نعم",
        "نعم"
       ],
       "allowed_values": [
        "نعم",
        "لا"
       ]
      },
      {
       "column": "G",
       "header": "الفرق (دقائق)",
       "kind": "formula",
       "formula_row_1": "=IF(AND(D5&\"\"=\"\",E5&\"\"=\"\"),\"\",N(E5)-N(D5))"
      }
     ]
    }
   ]
  },
  {
   "name": "المواد",
   "formula_cells": 0,
   "settings": [
    {
     "label": "المادة",
     "cell": "B4",
     "value": "الهدف الأسبوعي (ساعات)"
    },
    {
     "label": "رياضيات",
     "cell": "B5",
     "value": 5
    },
    {
     "label": "فيزياء",
     "cell": "B6",
     "value": 4
    },
    {
     "label": "لغة عربية",
     "cell": "B7",
     "value": 2
    },
    {
     "label": "إنجليزي",
     "cell": "B8",
     "value": 3
    }
   ]
  },
  {
   "name": "الإعدادات",
   "formula_cells": 0,
   "settings": [
    {
     "label": "أول يوم في الأسبوع",
     "cell": "B4",
     "value": "2026-11-07"
    },
    {
     "label": "نسبة التنفيذ الدنيا (مثل 0.8 = 80%)",
     "cell": "B5",
     "value": 0.8
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}