{
 "id": "quotation-tracker",
 "file": "softwiro-quotation-tracker.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": 0,
   "settings": [
    {
     "label": "تاريخ اليوم (التقرير حتى)",
     "cell": "B4",
     "value": "2026-11-29"
    },
    {
     "label": "نسبة الضريبة (مثال، حسب القانون المحلي)",
     "cell": "B5",
     "value": 0.14
    },
    {
     "label": "مدة الصلاحية الافتراضية (يوم)",
     "cell": "B6",
     "value": 15
    },
    {
     "label": "التنبيه قبل الانتهاء بـ (يوم)",
     "cell": "B7",
     "value": 7
    },
    {
     "label": "أول شهر في الملخص (اكتب أول يوم فيه)",
     "cell": "B8",
     "value": "2026-10-01"
    }
   ]
  },
  {
   "name": "العملاء",
   "formula_cells": 300,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 8,
     "capacity_last_row": 105,
     "columns": [
      {
       "column": "A",
       "header": "كود العميل",
       "kind": "input",
       "examples": [
        "C001",
        "C002",
        "C003"
       ]
      },
      {
       "column": "B",
       "header": "اسم العميل",
       "kind": "input",
       "examples": [
        "مكتب الأمل للمقاولات",
        "مطعم الواحة",
        "عيادة د. هالة"
       ]
      },
      {
       "column": "C",
       "header": "التليفون",
       "kind": "input",
       "examples": [
        "01001234501",
        "01001234502",
        "01001234503"
       ]
      },
      {
       "column": "D",
       "header": "المدينة",
       "kind": "input",
       "examples": [
        "القاهرة",
        "الجيزة",
        "الإسكندرية"
       ]
      },
      {
       "column": "E",
       "header": "عدد العروض",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",COUNTIFS('عروض الأسعار'!$B$6:$B$505,A6&\"\"))"
      },
      {
       "column": "F",
       "header": "قيمة العروض",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('عروض الأسعار'!$I$6:$I$505,'عروض الأسعار'!$B$6:$B$505,A6&\"\"))"
      },
      {
       "column": "G",
       "header": "قيمة المقبول",
       "kind": "formula",
       "formula_row_1": "=IF(A6&\"\"=\"\",\"\",SUMIFS('عروض الأسعار'!$I$6:$I$505,'عروض الأسعار'!$B$6:$B$505,A6&\"\",'عروض الأسعار'!$L$6:$L$505,\"مقبول\"))"
      }
     ]
    }
   ]
  },
  {
   "name": "عروض الأسعار",
   "formula_cells": 4500,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 16,
     "capacity_last_row": 505,
     "columns": [
      {
       "column": "A",
       "header": "رقم العرض",
       "kind": "input",
       "examples": [
        "Q-1001",
        "Q-1002",
        "Q-1003"
       ]
      },
      {
       "column": "B",
       "header": "كود العميل",
       "kind": "input",
       "examples": [
        "C001",
        "C002",
        "C003"
       ],
       "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": [
        "2026-10-03",
        "2026-10-05",
        "2026-10-08"
       ]
      },
      {
       "column": "E",
       "header": "إجمالي البنود",
       "kind": "input",
       "examples": [
        45000,
        18000,
        60000
       ]
      },
      {
       "column": "F",
       "header": "الخصم %",
       "kind": "input",
       "examples": [
        0.05,
        0,
        0.1
       ]
      },
      {
       "column": "G",
       "header": "بعد الخصم",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(E6),ROUND(E6*(1-IF(F6=\"\",0,F6)),2),\"\")"
      },
      {
       "column": "H",
       "header": "الضريبة",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(G6),ROUND(G6*'الإعدادات'!$B$5,2),\"\")"
      },
      {
       "column": "I",
       "header": "الإجمالي",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(G6),G6+H6,\"\")"
      },
      {
       "column": "J",
       "header": "الصلاحية (يوم)",
       "kind": "input",
       "examples": [
        15,
        10,
        15
       ]
      },
      {
       "column": "K",
       "header": "ينتهي في",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(D6),D6+IF(ISNUMBER(J6),J6,'الإعدادات'!$B$6),\"\")"
      },
      {
       "column": "L",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "مقبول",
        "مرفوض",
        "مقبول"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$11:$A$15"
       }
      },
      {
       "column": "M",
       "header": "تاريخ القرار",
       "kind": "input",
       "examples": [
        "2026-10-09",
        "2026-10-12",
        "2026-10-20"
       ]
      },
      {
       "column": "N",
       "header": "أيام القرار",
       "kind": "formula",
       "formula_row_1": "=IF(AND(ISNUMBER(D6),ISNUMBER(M6)),M6-D6,\"\")"
      },
      {
       "column": "O",
       "header": "الأيام المتبقية",
       "kind": "formula",
       "formula_row_1": "=IF(AND(L6=\"مرسل\",ISNUMBER(K6)),K6-'الإعدادات'!$B$4,\"\")"
      },
      {
       "column": "P",
       "header": "التنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(AND(L6=\"مرسل\",ISNUMBER(K6)),IF(K6<'الإعدادات'!$B$4,\"منتهي الصلاحية\",IF(K6-'الإعدادات'!$B$4<='الإعدادات'!$B$7,\"ينتهي قريبًا\",\"ساري\")),\"\")"
      },
      {
       "column": "Q",
       "header": "ملاحظة",
       "kind": "input",
       "examples": [
        "تركيب كامل",
        "السعر مرتفع",
        "لم يرد العميل"
       ]
      },
      {
       "column": "R",
       "header": "ترتيب",
       "kind": "formula",
       "formula_row_1": "=IF(OR(P6=\"منتهي الصلاحية\",P6=\"ينتهي قريبًا\"),COUNTIFS($P$6:$P$505,\"منتهي الصلاحية\",$K$6:$K$505,\"<\"&K6)+COUNTIFS($P$6:$P$505,\"ينتهي قريبًا\",$K$6:$K$505,\"<\"&K6)+COUNTIFS($K$6:K6,K6&\"\",$P$6:P6,P6),\"\")"
      }
     ]
    }
   ]
  },
  {
   "name": "التنبيهات",
   "formula_cells": 402,
   "record_tables": [
    {
     "header_row": 7,
     "first_record_row": 8,
     "sample_rows_filled": 0,
     "capacity_last_row": 57,
     "columns": [
      {
       "column": "A",
       "header": "م",
       "kind": "formula",
       "formula_row_1": "=IF(1<=$B$4+$B$5,1,\"\")"
      },
      {
       "column": "B",
       "header": "رقم العرض",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('عروض الأسعار'!$A$6:$A$505,MATCH($A8,'عروض الأسعار'!$R$6:$R$505,0))&\"\")"
      },
      {
       "column": "C",
       "header": "العميل",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('عروض الأسعار'!$C$6:$C$505,MATCH($A8,'عروض الأسعار'!$R$6:$R$505,0))&\"\")"
      },
      {
       "column": "D",
       "header": "الإجمالي",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('عروض الأسعار'!$I$6:$I$505,MATCH($A8,'عروض الأسعار'!$R$6:$R$505,0)))"
      },
      {
       "column": "E",
       "header": "ينتهي في",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('عروض الأسعار'!$K$6:$K$505,MATCH($A8,'عروض الأسعار'!$R$6:$R$505,0)))"
      },
      {
       "column": "F",
       "header": "الأيام المتبقية",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('عروض الأسعار'!$O$6:$O$505,MATCH($A8,'عروض الأسعار'!$R$6:$R$505,0)))"
      },
      {
       "column": "G",
       "header": "التنبيه",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('عروض الأسعار'!$P$6:$P$505,MATCH($A8,'عروض الأسعار'!$R$6:$R$505,0))&\"\")"
      },
      {
       "column": "H",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "=IF($A8=\"\",\"\",INDEX('عروض الأسعار'!$L$6:$L$505,MATCH($A8,'عروض الأسعار'!$R$6:$R$505,0))&\"\")"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "منتهية الصلاحية",
     "cell": "B4",
     "formula": "=COUNTIF('عروض الأسعار'!$P$6:$P$505,\"منتهي الصلاحية\")"
    },
    {
     "label": "تنتهي قريبًا",
     "cell": "B5",
     "formula": "=COUNTIF('عروض الأسعار'!$P$6:$P$505,\"ينتهي قريبًا\")"
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 66,
   "record_tables": [
    {
     "header_row": 25,
     "first_record_row": 26,
     "sample_rows_filled": 0,
     "capacity_last_row": 39,
     "columns": [
      {
       "column": "A",
       "header": "الحالة",
       "kind": "formula",
       "formula_row_1": "='الإعدادات'!A11"
      },
      {
       "column": "B",
       "header": "عدد العروض",
       "kind": "formula",
       "formula_row_1": "=COUNTIF('عروض الأسعار'!$L$6:$L$505,A26)"
      },
      {
       "column": "C",
       "header": "القيمة",
       "kind": "formula",
       "formula_row_1": "=SUMIFS('عروض الأسعار'!$I$6:$I$505,'عروض الأسعار'!$L$6:$L$505,A26)"
      },
      {
       "column": "D",
       "header": "نسبة من القيمة",
       "kind": "formula",
       "formula_row_1": "=IF($B$6=0,\"\",C26/$B$6)"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "عدد العروض",
     "cell": "B5",
     "formula": "=COUNT('عروض الأسعار'!$E$6:$E$505)"
    },
    {
     "label": "قيمة كل العروض (بعد الخصم وبالضريبة)",
     "cell": "B6",
     "formula": "=SUM('عروض الأسعار'!$I$6:$I$505)"
    },
    {
     "label": "عروض مقبولة",
     "cell": "B7",
     "formula": "=COUNTIF('عروض الأسعار'!$L$6:$L$505,\"مقبول\")"
    },
    {
     "label": "عروض مرفوضة",
     "cell": "B8",
     "formula": "=COUNTIF('عروض الأسعار'!$L$6:$L$505,\"مرفوض\")"
    },
    {
     "label": "عروض منتهية",
     "cell": "B9",
     "formula": "=COUNTIF('عروض الأسعار'!$L$6:$L$505,\"منتهي\")"
    },
    {
     "label": "عروض مرسلة بانتظار القرار",
     "cell": "B10",
     "formula": "=COUNTIF('عروض الأسعار'!$L$6:$L$505,\"مرسل\")"
    },
    {
     "label": "مسودات",
     "cell": "B11",
     "formula": "=COUNTIF('عروض الأسعار'!$L$6:$L$505,\"مسودة\")"
    },
    {
     "label": "قيمة العروض المقبولة",
     "cell": "B12",
     "formula": "=SUMIFS('عروض الأسعار'!$I$6:$I$505,'عروض الأسعار'!$L$6:$L$505,\"مقبول\")"
    },
    {
     "label": "قيمة العروض المرسلة المفتوحة",
     "cell": "B13",
     "formula": "=SUMIFS('عروض الأسعار'!$I$6:$I$505,'عروض الأسعار'!$L$6:$L$505,\"مرسل\")"
    },
    {
     "label": "نسبة القبول بالعدد",
     "cell": "B14",
     "formula": "=IF(B7+B8+B9=0,\"\",B7/(B7+B8+B9))"
    },
    {
     "label": "نسبة القبول بالقيمة",
     "cell": "B15",
     "formula": "=IF(B12+SUMIFS('عروض الأسعار'!$I$6:$I$505,'عروض الأسعار'!$L$6:$L$505,\"مرفوض\")+SUMIFS('عروض الأسعار'!$I$6:$I$505,'عروض الأسعار'!$L$6:$L$505,\"منتهي\")=0,\"\",B12/(B12+SUMIFS('عروض الأسعار'!$I$6:$I$505,'عروض الأسعار'!$L$6:$L$505,\"مرفوض\")+SUMIFS('عروض الأسعار'!$I$6:$I$505,'عروض الأسعار'!$L$6:$L$505,\"منتهي\")))"
    },
    {
     "label": "متوسط أيام اتخاذ القرار",
     "cell": "B16",
     "formula": "=IF(COUNT('عروض الأسعار'!$N$6:$N$505)=0,\"\",SUM('عروض الأسعار'!$N$6:$N$505)/COUNT('عروض الأسعار'!$N$6:$N$505))"
    },
    {
     "label": "متوسط قيمة العرض المقبول",
     "cell": "B17",
     "formula": "=IF(B7=0,\"\",B12/B7)"
    },
    {
     "label": "منتهية الصلاحية",
     "cell": "B20",
     "formula": "=COUNTIF('عروض الأسعار'!$P$6:$P$505,\"منتهي الصلاحية\")"
    },
    {
     "label": "تنتهي قريبًا",
     "cell": "B21",
     "formula": "=COUNTIF('عروض الأسعار'!$P$6:$P$505,\"ينتهي قريبًا\")"
    },
    {
     "label": "قيمة المنتهية الصلاحية",
     "cell": "B22",
     "formula": "=SUMIFS('عروض الأسعار'!$I$6:$I$505,'عروض الأسعار'!$P$6:$P$505,\"منتهي الصلاحية\")"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}