getSheetNames() as $name) { echo " - $name" . PHP_EOL; } // Check DocNor for any notes $sheet = $spreadsheet->getSheetByName('DocNor'); echo PHP_EOL . "=== DocNor notes/comments ===" . PHP_EOL; $comments = $sheet->getComments(); foreach ($comments as $cell => $comment) { echo "Cell $cell: " . $comment->getText() . PHP_EOL; } // Check for any cells with formulas echo PHP_EOL . "=== DocNor formulas ===" . PHP_EOL; for ($row = 1; $row <= 5; $row++) { for ($col = 1; $col <= 3; $col++) { $cell = $sheet->getCellByColumnAndRow($col, $row); if ($cell->getDataType() == \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_FORMULA) { echo "Cell " . $cell->getCoordinate() . ": " . $cell->getValue() . " = " . $cell->getCalculatedValue() . PHP_EOL; } } } // Check if there's any metadata echo PHP_EOL . "=== DocNor first cell values ===" . PHP_EOL; echo "A1: " . $sheet->getCell('A1')->getValue() . PHP_EOL; echo "B1: " . $sheet->getCell('B1')->getValue() . PHP_EOL; echo "C1: " . $sheet->getCell('C1')->getValue() . PHP_EOL;