@@ -33,7 +33,7 @@ class Calculation
3333 // Opening bracket
3434 const CALCULATION_REGEXP_OPENBRACE = '\( ' ;
3535 // Function (allow for the old @ symbol that could be used to prefix a function, but we'll ignore it)
36- const CALCULATION_REGEXP_FUNCTION = '@?(?:_xlfn\.)?([\p{L}][\p{L}\p{N}\.]*)[\s]*\( ' ;
36+ const CALCULATION_REGEXP_FUNCTION = '@?(?:_xlfn\.)?(?:_xlws\.)?( [\p{L}][\p{L}\p{N}\.]*)[\s]*\( ' ;
3737 // Cell reference (cell or range of cells, with or without a sheet reference)
3838 const CALCULATION_REGEXP_CELLREF = '((([^\s,!&%^\/\*\+<>=:`-]*)|( \'(?:[^ \']| \'[^!])+? \')|(\"(?:[^\"]|\"[^!])+?\"))!)?\$?\b([a-z]{1,3})\$?(\d{1,7})(?![\w.]) ' ;
3939 // Cell reference (with or without a sheet reference) ensuring absolute/relative
@@ -328,6 +328,11 @@ public static function getExcelConstants(string $key)
328328 'functionCall ' => [MathTrig \Arabic::class, 'evaluate ' ],
329329 'argumentCount ' => '1 ' ,
330330 ],
331+ 'ANCHORARRAY ' => [
332+ 'category ' => Category::CATEGORY_UNCATEGORISED ,
333+ 'functionCall ' => [Functions::class, 'DUMMY ' ],
334+ 'argumentCount ' => '* ' ,
335+ ],
331336 'AREAS ' => [
332337 'category ' => Category::CATEGORY_LOOKUP_AND_REFERENCE ,
333338 'functionCall ' => [Functions::class, 'DUMMY ' ],
@@ -503,6 +508,16 @@ public static function getExcelConstants(string $key)
503508 'functionCall ' => [Engineering \BitWise::class, 'BITRSHIFT ' ],
504509 'argumentCount ' => '2 ' ,
505510 ],
511+ 'BYCOL ' => [
512+ 'category ' => Category::CATEGORY_LOGICAL ,
513+ 'functionCall ' => [Functions::class, 'DUMMY ' ],
514+ 'argumentCount ' => '* ' ,
515+ ],
516+ 'BYROW ' => [
517+ 'category ' => Category::CATEGORY_LOGICAL ,
518+ 'functionCall ' => [Functions::class, 'DUMMY ' ],
519+ 'argumentCount ' => '* ' ,
520+ ],
506521 'CEILING ' => [
507522 'category ' => Category::CATEGORY_MATH_AND_TRIG ,
508523 'functionCall ' => [MathTrig \Ceiling::class, 'ceiling ' ],
@@ -1613,6 +1628,11 @@ public static function getExcelConstants(string $key)
16131628 'functionCall ' => [Statistical \Deviations::class, 'kurtosis ' ],
16141629 'argumentCount ' => '1+ ' ,
16151630 ],
1631+ 'LAMBDA ' => [
1632+ 'category ' => Category::CATEGORY_UNCATEGORISED ,
1633+ 'functionCall ' => [Functions::class, 'DUMMY ' ],
1634+ 'argumentCount ' => '* ' ,
1635+ ],
16161636 'LARGE ' => [
16171637 'category ' => Category::CATEGORY_STATISTICAL ,
16181638 'functionCall ' => [Statistical \Size::class, 'large ' ],
@@ -2307,6 +2327,11 @@ public static function getExcelConstants(string $key)
23072327 'functionCall ' => [MathTrig \Trig \Sine::class, 'sin ' ],
23082328 'argumentCount ' => '1 ' ,
23092329 ],
2330+ 'SINGLE ' => [
2331+ 'category ' => Category::CATEGORY_UNCATEGORISED ,
2332+ 'functionCall ' => [Functions::class, 'DUMMY ' ],
2333+ 'argumentCount ' => '* ' ,
2334+ ],
23102335 'SINH ' => [
23112336 'category ' => Category::CATEGORY_MATH_AND_TRIG ,
23122337 'functionCall ' => [MathTrig \Trig \Sine::class, 'sinh ' ],
0 commit comments