fix the error 

function onEdit(e) {

   addTimestamp1(e);
   addTimestamp2(e);
   addTimestamp3(e);
   addTimestamp4(e);
   addTimestamp5(e);
   addTimestamp6(e);
   addTimestamp7(e);
   addTimestamp8(e);
   addTimestamp9(e);
}


function addTimestamp1(e) {
  var startRow = 7;
  var ws = "جدول المتابعة";
  var row = e.range.getRow();
  var col = e.range.getColumn();
  var sheet = e.source.getActiveSheet();
  var currentDate = new Date();

  if (sheet.getName() === ws && row >= startRow) {
    var excludedColumns = [10, 18, 26];
    if (excludedColumns.indexOf(col) === -1) {
      var letter = getLetter(col);
      if (sheet.getRange(letter + "5").getValue() == "") {
        sheet.getRange(letter + "5").setValue(currentDate);
      }
    }
  }
}

function getLetter(col) {
  if (col >= 1 && col <= 26) {
    return String.fromCharCode(64 + col);
  } else if (col > 26 && col <= 702) {
    var firstLetter = String.fromCharCode(64 + parseInt((col - 1) / 26));
    var secondLetter = String.fromCharCode(65 + ((col - 1) % 26));
    return firstLetter + secondLetter;
  } else {
    throw new Error("Column out of range");
  }
}


function addTimestamp2(e) {
const timestampCols = [
{ col: 3, cell: "C5" },{ col: 5, cell: "E5" },{ col: 7, cell: "G5" },{ col: 9, cell: "I5" },{ col: 11, cell: "K5" },{ col: 13, cell: "M5" },{ col: 15, cell: "O5" },{ col: 17, cell: "Q5" },{ col: 19, cell: "S5" },{ col: 21, cell: "U5" }
];

const ws = "اخراج العيون - الملح";
const row = e.range.getRow();
const col = e.range.getColumn();

if (e.source.getActiveSheet().getName() === ws) {
const currentDate = new Date();
timestampCols.forEach(function (timestampCol) {
if (col === timestampCol.col && row >= 6) {
const cellValue = e.source.getActiveSheet().getRange(timestampCol.cell).getValue();
if (cellValue === "") {
e.source.getActiveSheet().getRange(timestampCol.cell).setValue(currentDate);
}}
});
}}


function addTimestamp3(e) {
const timestampCols = [
{ col: 3, cell: "C4" },{ col: 5, cell: "E4" },{ col: 7, cell: "G4" },{ col: 9, cell: "I4" },{ col: 11, cell: "K4" },{ col: 13, cell: "M4" },{ col: 15, cell: "O4" }
];

const ws = "المطعوم - السنامكة";
const row = e.range.getRow();
const col = e.range.getColumn();

if (e.source.getActiveSheet().getName() === ws) {
const currentDate = new Date();
timestampCols.forEach(function (timestampCol) {
if (col === timestampCol.col && row >= 5) {
const cellValue = e.source.getActiveSheet().getRange(timestampCol.cell).getValue();
if (cellValue === "") {
e.source.getActiveSheet().getRange(timestampCol.cell).setValue(currentDate);
}}
});
}}


function addTimestamp4(e) {
const timestampCols = [
{ col: 2, cell: "B4" },{ col: 4, cell: "D4" },{ col: 6, cell: "F4" },{ col: 8, cell: "H4" },{ col: 10, cell: "J4" },{ col: 12, cell: "L4" },{ col: 14, cell: "N4" },{ col: 16, cell: "P4" },{ col: 18, cell: "R4" },{ col: 20, cell: "T4" }
];

const ws = "المشموم - القسط الهندي";
const row = e.range.getRow();
const col = e.range.getColumn();

if (e.source.getActiveSheet().getName() === ws) {
const currentDate = new Date();
timestampCols.forEach(function (timestampCol) {
if (col === timestampCol.col && row >= 5) {
const cellValue = e.source.getActiveSheet().getRange(timestampCol.cell).getValue();
if (cellValue === "") {
e.source.getActiveSheet().getRange(timestampCol.cell).setValue(currentDate);
}}
});
}}


function addTimestamp5(e) {
const timestampCols = [
{ col: 3, cell: "C5" },{ col: 5, cell: "E5" },{ col: 7, cell: "G5" },{ col: 9, cell: "I5" },{ col: 11, cell: "K5" },{ col: 13, cell: "M5" },{ col: 15, cell: "O5" },{ col: 17, cell: "Q5" },{ col: 19, cell: "S5" },{ col: 21, cell: "U5" }
];

const ws = "اخراج العيون - الملح";
const row = e.range.getRow();
const col = e.range.getColumn();

if (e.source.getActiveSheet().getName() === ws) {
const currentDate = new Date();
timestampCols.forEach(function (timestampCol) {
if (col === timestampCol.col && row >= 5) {
const cellValue = e.source.getActiveSheet().getRange(timestampCol.cell).getValue();
if (cellValue === "") {
e.source.getActiveSheet().getRange(timestampCol.cell).setValue(currentDate);
}}
});
}}


function addTimestamp5(e) {
const timestampCols = [
{ col: 3, cell: "C4" },{ col: 5, cell: "E4" },{ col: 7, cell: "G4" },{ col: 9, cell: "I4" },{ col: 11, cell: "K4" },{ col: 13, cell: "M4" },{ col: 15, cell: "O4" }
];

const ws = "اللدود - الفم";
const row = e.range.getRow();
const col = e.range.getColumn();

if (e.source.getActiveSheet().getName() === ws) {
const currentDate = new Date();
timestampCols.forEach(function (timestampCol) {
if (col === timestampCol.col && row >= 5) {
const cellValue = e.source.getActiveSheet().getRange(timestampCol.cell).getValue();
if (cellValue === "") {
e.source.getActiveSheet().getRange(timestampCol.cell).setValue(currentDate);
}}
});
}}


function addTimestamp6(e) {
const timestampCols = [
{ col: 3, cell: "C4" },{ col: 5, cell: "E4" },{ col: 7, cell: "G4" },{ col: 9, cell: "I4" },{ col: 11, cell: "K4" },{ col: 13, cell: "M4" },{ col: 15, cell: "O4" }
];

const ws = "اللبخة - الشعر";
const row = e.range.getRow();
const col = e.range.getColumn();

if (e.source.getActiveSheet().getName() === ws) {
const currentDate = new Date();
timestampCols.forEach(function (timestampCol) {
if (col === timestampCol.col && row >= 5) {
const cellValue = e.source.getActiveSheet().getRange(timestampCol.cell).getValue();
if (cellValue === "") {
e.source.getActiveSheet().getRange(timestampCol.cell).setValue(currentDate);
}}
});
}}


function addTimestamp7(e) {
const timestampCols = [
{ col: 2, cell: "B4" },{ col: 4, cell: "D4" },{ col: 6, cell: "F4" },{ col: 8, cell: "H4" },{ col: 10, cell: "J4" },{ col: 12, cell: "L4" },{ col: 14, cell: "N4" },{ col: 16, cell: "P4" },{ col: 18, cell: "R4" },{ col: 20, cell: "T4" }
];

const ws = "أسحار الرحم";
const row = e.range.getRow();
const col = e.range.getColumn();

if (e.source.getActiveSheet().getName() === ws) {
const currentDate = new Date();
timestampCols.forEach(function (timestampCol) {
if (col === timestampCol.col && row >= 5) {
const cellValue = e.source.getActiveSheet().getRange(timestampCol.cell).getValue();
if (cellValue === "") {
e.source.getActiveSheet().getRange(timestampCol.cell).setValue(currentDate);
}}
});
}}


function addTimestamp8(e) {
const timestampCols = [
{ col: 3, cell: "C5" },{ col: 5, cell: "E5" },{ col: 7, cell: "G5" },{ col: 9, cell: "I5" },{ col: 11, cell: "K5" },
];

const ws = "جلسة الحجامة";
const row = e.range.getRow();
const col = e.range.getColumn();

if (e.source.getActiveSheet().getName() === ws) {
const currentDate = new Date();
timestampCols.forEach(function (timestampCol) {
if (col === timestampCol.col && row >= 6) {
const cellValue = e.source.getActiveSheet().getRange(timestampCol.cell).getValue();
if (cellValue === "") {
e.source.getActiveSheet().getRange(timestampCol.cell).setValue(currentDate);
}}
});
}}

function addTimestamp9(e) {
const timestampCols = [
{ col: 5, cell: "E20" },{ col: 6, cell: "F20" },{ col: 7, cell: "G20" },{ col: 8, cell: "H20" },{ col: 9, cell: "I20" },{ col: 10, cell: "J20" },{ col: 11, cell: "K20" },{ col: 12, cell: "L20" },{ col: 13, cell: "M20" },{ col: 14, cell: "N20" }
];

const ws = "رش البيت";
const row = e.range.getRow();
const col = e.range.getColumn();

if (e.source.getActiveSheet().getName() === ws) {
const currentDate = new Date();
timestampCols.forEach(function (timestampCol) {
if (col === timestampCol.col && row >= 22) {
const cellValue = e.source.getActiveSheet().getRange(timestampCol.cell).getValue();
if (cellValue === "") {
e.source.getActiveSheet().getRange(timestampCol.cell).setValue(currentDate);
}}
});
}}