{
 "id": "running-cycling-swimming-log",
 "file": "softwiro-running-cycling-swimming-log.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": "رياضي (مثال)"
    },
    {
     "label": "تاريخ اليوم",
     "cell": "B5",
     "value": "2026-11-13"
    },
    {
     "label": "نسبة الزيادة التي تنبّه",
     "cell": "B7",
     "value": 0.1
    },
    {
     "label": "الرياضة",
     "cell": "B10",
     "value": "الهدف الأسبوعي (كم)"
    },
    {
     "label": "جري",
     "cell": "B11",
     "value": 20
    },
    {
     "label": "مشي",
     "cell": "B12",
     "value": 15
    },
    {
     "label": "دراجة",
     "cell": "B13",
     "value": 60
    },
    {
     "label": "سباحة",
     "cell": "B14",
     "value": 3
    },
    {
     "label": "تجديف",
     "cell": "B15",
     "value": 10
    }
   ],
   "results": [
    {
     "label": "بداية الأسبوع الحالي (السبت)",
     "cell": "B6",
     "formula": "=B5-MOD(B5,7)"
    }
   ]
  },
  {
   "name": "الجلسات",
   "formula_cells": 9000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 45,
     "capacity_last_row": 1505,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-08-16",
        "2026-08-19",
        "2026-08-22"
       ]
      },
      {
       "column": "B",
       "header": "الرياضة",
       "kind": "input",
       "examples": [
        "جري",
        "دراجة",
        "جري"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$11:$A$15"
       }
      },
      {
       "column": "C",
       "header": "المسافة (كم)",
       "kind": "input",
       "examples": [
        5,
        20,
        6
       ]
      },
      {
       "column": "D",
       "header": "المدة (دقيقة)",
       "kind": "input",
       "examples": [
        32,
        65,
        38
       ]
      },
      {
       "column": "E",
       "header": "متوسط النبض",
       "kind": "input",
       "examples": [
        150,
        152,
        135
       ]
      },
      {
       "column": "F",
       "header": "ملاحظة",
       "kind": "input"
      },
      {
       "column": "G",
       "header": "الوتيرة (د/كم)",
       "kind": "formula",
       "formula_row_1": "=IF(AND(ISNUMBER(C6),ISNUMBER(D6),OR(B6=\"جري\",B6=\"مشي\")),IF(C6>0,ROUND(D6/C6,2),\"\"),\"\")"
      },
      {
       "column": "H",
       "header": "السرعة (كم/س)",
       "kind": "formula",
       "formula_row_1": "=IF(AND(ISNUMBER(C6),ISNUMBER(D6),B6&\"\"<>\"\",B6<>\"سباحة\"),IF(D6>0,ROUND(C6/(D6/60),1),\"\"),\"\")"
      },
      {
       "column": "I",
       "header": "زمن 100 متر (د)",
       "kind": "formula",
       "formula_row_1": "=IF(AND(ISNUMBER(C6),ISNUMBER(D6),B6=\"سباحة\"),IF(C6>0,ROUND(D6/(C6*10),2),\"\"),\"\")"
      },
      {
       "column": "J",
       "header": "بداية الأسبوع",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(A6),A6-MOD(A6,7),\"\")"
      },
      {
       "column": "K",
       "header": "الأطول",
       "kind": "formula",
       "formula_row_1": "=IF(AND(ISNUMBER(A6),ISNUMBER(C6)),IF(COUNTIFS($J$6:$J$1505,J6,$C$6:$C$1505,\">\"&C6)=0,1,0),\"\")"
      },
      {
       "column": "L",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(AND(A6=\"\",B6&\"\"=\"\",C6=\"\"),\"\",IF(NOT(ISNUMBER(A6)),\"التاريخ ناقص\",IF(NOT(ISNUMBER(C6)),\"المسافة ناقصة\",IF(COUNTIF('الإعدادات'!$A$11:$A$15,B6&\"\")=0,\"رياضة غير مسجلة\",\"\"))))"
      }
     ]
    }
   ]
  },
  {
   "name": "الأسبوعي",
   "formula_cells": 210,
   "record_tables": [
    {
     "header_row": 8,
     "first_record_row": 9,
     "sample_rows_filled": 0,
     "capacity_last_row": 18,
     "columns": [
      {
       "column": "H",
       "header": "إجمالي الكيلومترات",
       "kind": "formula",
       "formula_row_1": "=SUMIFS('الجلسات'!$C$6:$C$1505,'الجلسات'!$A$6:$A$1505,\">=\"&$A9,'الجلسات'!$A$6:$A$1505,\"<\"&($A9+7))"
      },
      {
       "column": "I",
       "header": "إجمالي الدقائق",
       "kind": "formula",
       "formula_row_1": "=SUMIFS('الجلسات'!$D$6:$D$1505,'الجلسات'!$A$6:$A$1505,\">=\"&$A9,'الجلسات'!$A$6:$A$1505,\"<\"&($A9+7))"
      },
      {
       "column": "J",
       "header": "عدد الجلسات",
       "kind": "formula",
       "formula_row_1": "=COUNTIFS('الجلسات'!$A$6:$A$1505,\">=\"&$A9,'الجلسات'!$A$6:$A$1505,\"<\"&($A9+7))"
      },
      {
       "column": "K",
       "header": "متوسط النبض",
       "kind": "formula",
       "formula_row_1": "=IFERROR(ROUND(AVERAGEIFS('الجلسات'!$E$6:$E$1505,'الجلسات'!$A$6:$A$1505,\">=\"&$A9,'الجلسات'!$A$6:$A$1505,\"<\"&($A9+7)),0),\"\")"
      },
      {
       "column": "L",
       "header": "أطول جلسة (كم)",
       "kind": "formula",
       "formula_row_1": "=IFERROR(AVERAGEIFS('الجلسات'!$C$6:$C$1505,'الجلسات'!$J$6:$J$1505,$A9,'الجلسات'!$K$6:$K$1505,1),\"\")"
      },
      {
       "column": "M",
       "header": "الهدف (كم)",
       "kind": "formula",
       "formula_row_1": "=SUM('الإعدادات'!$B$11:$B$15)"
      },
      {
       "column": "N",
       "header": "نسبة الهدف",
       "kind": "formula",
       "formula_row_1": "=IF(M9>0,H9/M9,\"\")"
      },
      {
       "column": "O",
       "header": "متوسط آخر 4 أسابيع",
       "kind": "formula",
       "formula_row_1": "=SUMIFS('الجلسات'!$C$6:$C$1505,'الجلسات'!$A$6:$A$1505,\">=\"&($A9-21),'الجلسات'!$A$6:$A$1505,\"<\"&($A9+7))/4"
      },
      {
       "column": "P",
       "header": "متوسط 4 أسابيع سابقة",
       "kind": "formula",
       "formula_row_1": "=SUMIFS('الجلسات'!$C$6:$C$1505,'الجلسات'!$A$6:$A$1505,\">=\"&($A9-28),'الجلسات'!$A$6:$A$1505,\"<\"&$A9)/4"
      },
      {
       "column": "Q",
       "header": "التغير عنه",
       "kind": "formula",
       "formula_row_1": "=IF(P9>0,H9/P9-1,\"\")"
      },
      {
       "column": "R",
       "header": "تنبيه الحمل",
       "kind": "formula",
       "formula_row_1": "=IF(P9>0,IF(H9>P9*(1+'الإعدادات'!$B$7),\"زيادة حادة\",\"\"),\"\")"
      }
     ]
    },
    {
     "header_row": 22,
     "first_record_row": 23,
     "sample_rows_filled": 0,
     "capacity_last_row": 32,
     "columns": [
      {
       "column": "A",
       "header": "الرياضة",
       "kind": "formula",
       "formula_row_1": "=IF('الإعدادات'!A11=\"\",\"\",'الإعدادات'!A11)"
      },
      {
       "column": "B",
       "header": "كم هذا الأسبوع",
       "kind": "formula",
       "formula_row_1": "=IF(A23=\"\",\"\",C9)"
      },
      {
       "column": "C",
       "header": "الهدف (كم)",
       "kind": "formula",
       "formula_row_1": "=IF(A23=\"\",\"\",'الإعدادات'!B11)"
      },
      {
       "column": "D",
       "header": "نسبة الهدف",
       "kind": "formula",
       "formula_row_1": "=IF(A23=\"\",\"\",IF(N(C23)>0,B23/C23,\"\"))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "الرياضي",
     "cell": "B4",
     "formula": "='الإعدادات'!B4"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}