We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d430c46 + 69e67d9 commit 133df7aCopy full SHA for 133df7a
src/ExcelSheet.php
@@ -307,12 +307,12 @@ protected function normalizeIndex($data)
307
/**
308
* @param int|string $column the column either as int or as string. If
309
* numeric, the startColumn offset will be added.
310
- * @return int the normalized numeric column index (0-based).
+ * @return int the normalized numeric column index (1-based).
311
*/
312
public function normalizeColumn($column)
313
{
314
if (is_string($column)) {
315
- return \PhpOffice\PhpSpreadsheet\Cell\Coordinate::columnIndexFromString($column) - 1;
+ return \PhpOffice\PhpSpreadsheet\Cell\Coordinate::columnIndexFromString($column);
316
} else {
317
return $column + self::normalizeColumn($this->startColumn);
318
}
0 commit comments