{
 "id": "ads-lead-quality-tracker",
 "file": "softwiro-ads-lead-quality-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,
   "record_tables": [
    {
     "header_row": 11,
     "first_record_row": 12,
     "sample_rows_filled": 9,
     "capacity_last_row": 29,
     "columns": [
      {
       "column": "A",
       "header": "الحملة",
       "kind": "input",
       "examples": [
        "فيسبوك - عرض الدورة الصيفية",
        "انستجرام - ريلز المدرسين",
        "بحث جوجل - كلمات الخدمة"
       ]
      },
      {
       "column": "B",
       "header": "المنصة",
       "kind": "input",
       "examples": [
        "Meta (فيسبوك/انستجرام)",
        "Meta (فيسبوك/انستجرام)",
        "Google Ads"
       ]
      },
      {
       "column": "C",
       "header": "الإنفاق الشهري (جنيه)",
       "kind": "input",
       "examples": [
        12000,
        8000,
        15000
       ]
      }
     ]
    }
   ],
   "settings": [
    {
     "label": "اسم النشاط",
     "cell": "B4",
     "value": "مركز تدريب النور (مثال)"
    },
    {
     "label": "تاريخ اليوم",
     "cell": "B5",
     "value": "2026-11-13"
    },
    {
     "label": "بداية فترة التقرير",
     "cell": "B6",
     "value": "2026-10-01"
    },
    {
     "label": "نهاية فترة التقرير",
     "cell": "B7",
     "value": "2026-10-31"
    },
    {
     "label": "عدد أشهر الفترة",
     "cell": "B8",
     "value": 1
    },
    {
     "label": "عميل جديد متأخر بعد (يوم)",
     "cell": "B9",
     "value": 7
    }
   ]
  },
  {
   "name": "العملاء",
   "formula_cells": 6000,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 109,
     "capacity_last_row": 1505,
     "columns": [
      {
       "column": "A",
       "header": "تاريخ الوصول",
       "kind": "input",
       "examples": [
        "2026-09-24",
        "2026-09-28",
        "2026-10-01"
       ]
      },
      {
       "column": "B",
       "header": "الحملة",
       "kind": "input",
       "examples": [
        "فيسبوك - عرض الدورة الصيفية",
        "بحث جوجل - كلمات الخدمة",
        "فيسبوك - عرض الدورة الصيفية"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$12:$A$26"
       }
      },
      {
       "column": "C",
       "header": "كود العميل",
       "kind": "input",
       "examples": [
        "L-0001",
        "L-0002",
        "L-0003"
       ]
      },
      {
       "column": "D",
       "header": "الحالة",
       "kind": "input",
       "examples": [
        "تم البيع",
        "مؤهل",
        "رقم خاطئ"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$E$12:$E$18"
       }
      },
      {
       "column": "E",
       "header": "قيمة البيع (جنيه)",
       "kind": "input",
       "examples": [
        3000,
        5000,
        2500
       ]
      },
      {
       "column": "F",
       "header": "ملاحظة",
       "kind": "input"
      },
      {
       "column": "G",
       "header": "مؤهل",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",IF(OR(D6=\"مؤهل\",D6=\"عرض سعر\",D6=\"تم البيع\"),1,0))"
      },
      {
       "column": "H",
       "header": "مباع",
       "kind": "formula",
       "formula_row_1": "=IF(D6&\"\"=\"\",\"\",IF(D6=\"تم البيع\",1,0))"
      },
      {
       "column": "I",
       "header": "عمر العميل (يوم)",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(A6),MAX(0,'الإعدادات'!$B$5-A6),\"\")"
      },
      {
       "column": "J",
       "header": "تنبيه",
       "kind": "formula",
       "formula_row_1": "=IF(AND(A6=\"\",B6&\"\"=\"\",C6&\"\"=\"\",D6&\"\"=\"\"),\"\",IF(NOT(ISNUMBER(A6)),\"التاريخ ناقص\",IF(B6&\"\"=\"\",\"الحملة ناقصة\",IF(COUNTIF('الإعدادات'!$A$12:$A$26,B6&\"\")=0,\"حملة غير مسجلة\",IF(D6&\"\"=\"\",\"الحالة ناقصة\",IF(AND(H6=1,N(E6)<=0),\"بيع بلا قيمة\",IF(AND(H6<>1,N(E6)>0),\"قيمة لعميل غير مباع\",IF(AND(C6&\"\"<>\"\",COUNTIF($C$6:$C$1505,C6&\"\")>1),\"كود مكرر\",\"\"))))))))"
      }
     ]
    }
   ]
  },
  {
   "name": "التقرير",
   "formula_cells": 286,
   "record_tables": [
    {
     "header_row": 9,
     "first_record_row": 10,
     "sample_rows_filled": 0,
     "capacity_last_row": 52,
     "columns": [
      {
       "column": "A",
       "header": "الحملة",
       "kind": "formula",
       "formula_row_1": "=IF('الإعدادات'!A12&\"\"=\"\",\"\",'الإعدادات'!A12)"
      },
      {
       "column": "B",
       "header": "المنصة",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",'الإعدادات'!B12&\"\")"
      },
      {
       "column": "C",
       "header": "الإنفاق",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",N('الإعدادات'!C12)*'الإعدادات'!$B$8)"
      },
      {
       "column": "D",
       "header": "عملاء",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",COUNTIFS('العملاء'!$B$6:$B$1505,$A10,'العملاء'!$A$6:$A$1505,\">=\"&'الإعدادات'!$B$6,'العملاء'!$A$6:$A$1505,\"<=\"&'الإعدادات'!$B$7))"
      },
      {
       "column": "E",
       "header": "مؤهلون",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",COUNTIFS('العملاء'!$B$6:$B$1505,$A10,'العملاء'!$A$6:$A$1505,\">=\"&'الإعدادات'!$B$6,'العملاء'!$A$6:$A$1505,\"<=\"&'الإعدادات'!$B$7,'العملاء'!$G$6:$G$1505,1))"
      },
      {
       "column": "F",
       "header": "مبيعات",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",COUNTIFS('العملاء'!$B$6:$B$1505,$A10,'العملاء'!$A$6:$A$1505,\">=\"&'الإعدادات'!$B$6,'العملاء'!$A$6:$A$1505,\"<=\"&'الإعدادات'!$B$7,'العملاء'!$H$6:$H$1505,1))"
      },
      {
       "column": "G",
       "header": "أرقام خاطئة",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",COUNTIFS('العملاء'!$B$6:$B$1505,$A10,'العملاء'!$A$6:$A$1505,\">=\"&'الإعدادات'!$B$6,'العملاء'!$A$6:$A$1505,\"<=\"&'الإعدادات'!$B$7,'العملاء'!$D$6:$D$1505,\"رقم خاطئ\"))"
      },
      {
       "column": "H",
       "header": "تكلفة العميل CPL",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",IF(D10>0,C10/D10,\"\"))"
      },
      {
       "column": "I",
       "header": "تكلفة المؤهل",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",IF(E10>0,C10/E10,\"\"))"
      },
      {
       "column": "J",
       "header": "نسبة التأهيل",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",IF(D10>0,E10/D10,\"\"))"
      },
      {
       "column": "K",
       "header": "نسبة الإغلاق",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",IF(D10>0,F10/D10,\"\"))"
      },
      {
       "column": "L",
       "header": "أرقام خاطئة %",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",IF(D10>0,G10/D10,\"\"))"
      },
      {
       "column": "M",
       "header": "CAC",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",IF(F10>0,C10/F10,\"\"))"
      },
      {
       "column": "N",
       "header": "الإيراد",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",SUMIFS('العملاء'!$E$6:$E$1505,'العملاء'!$B$6:$B$1505,$A10,'العملاء'!$A$6:$A$1505,\">=\"&'الإعدادات'!$B$6,'العملاء'!$A$6:$A$1505,\"<=\"&'الإعدادات'!$B$7,'العملاء'!$H$6:$H$1505,1))"
      },
      {
       "column": "O",
       "header": "ROI",
       "kind": "formula",
       "formula_row_1": "=IF($A10=\"\",\"\",IF(C10>0,(N10-C10)/C10,\"\"))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "النشاط",
     "cell": "B4",
     "formula": "='الإعدادات'!B4&\"\""
    },
    {
     "label": "من",
     "cell": "B5",
     "formula": "='الإعدادات'!$B$6"
    },
    {
     "label": "إلى",
     "cell": "B6",
     "formula": "='الإعدادات'!$B$7"
    },
    {
     "label": "أشهر الفترة",
     "cell": "B7",
     "formula": "='الإعدادات'!$B$8"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}