mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-13 19:46:31 +00:00
Provide a method to easily access the array formula range for a cell containing an array formula
This commit is contained in:
@@ -458,6 +458,17 @@ class Cell
|
||||
return false;
|
||||
}
|
||||
|
||||
public function arrayFormulaRange(): ?string
|
||||
{
|
||||
if ($this->isFormula() && $this->isArrayFormula()) {
|
||||
$formulaAttributes = $this->getFormulaAttributes();
|
||||
|
||||
return $formulaAttributes['ref'] ?? null;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Does this cell contain Data validation rules?
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user