PHPOffice/PhpSpreadsheet · error · PhpOffice\PhpSpreadsheet\Exception
3-D Range References are not supported
Error message
3-D Range References are not supported
What it means
Error "3-D Range References are not supported" thrown in PHPOffice/PhpSpreadsheet.
Source
Thrown at src/PhpSpreadsheet/Cell/Coordinate.php:497
$base26 = self::LOOKUP_CACHE[$characterValue] . $base26;
} while ($indexValue > 0);
$indexCache[$columnIndex] = $base26;
}
return $indexCache[$columnIndex];
}
/**
* Extract all cell references in range, which may be comprised of multiple cell ranges.
*
* @param string $cellRange Range: e.g. 'A1' or 'A1:C10' or 'A1:E10,A20:E25' or 'A1:E5 C3:G7' or 'A1:C1,A3:C3 B1:C3'
*
* @return string[] Array containing single cell references
*/
public static function extractAllCellReferencesInRange(string $cellRange): array
{
if (substr_count($cellRange, '!') > 1) {
throw new Exception('3-D Range References are not supported');
}
[$worksheet, $cellRange] = Worksheet::extractSheetTitle($cellRange, true);
$quoted = '';
if ($worksheet) {
$quoted = Worksheet::nameRequiresQuotes($worksheet) ? "'" : '';
if (str_starts_with($worksheet, "'") && str_ends_with($worksheet, "'")) {
$worksheet = substr($worksheet, 1, -1);
}
$worksheet = str_replace("'", "''", $worksheet);
}
[$ranges, $operators] = self::getCellBlocksFromRangeString($cellRange ?? 'A1');
$cells = [];
foreach ($ranges as $range) {
/** @var string $range */
$cells[] = self::getReferencesForCellBlock($range);
}View on GitHub (pinned to 65b080eef4)
When it happens
Trigger: Thrown at src/PhpSpreadsheet/Cell/Coordinate.php:497 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of PHPOffice/PhpSpreadsheet@65b080eef4 (2026-08-17).
Data as JSON: /api/errors/e560ca27d12476d0.
Report an issue: GitHub.