Function getCellValue

  • Gets the value of a cell in the worksheet by row and column index.

    Parameters

    • worksheet: Worksheet

      The ExcelJS worksheet.

    • row: number

      The 1-based row index.

    • col: number

      The 1-based column index.

    Returns any

    The value of the specified cell.

    const status = getCellValue(worksheet, 2, 4); // gets value from D2