mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-11 18:46:49 +00:00
SUMIFS Does Not Require _xlfn
Fix #4182. It was on our list as "introduced in 2019". It was, in fact, available with Excel 2007 (https://support.microsoft.com/en-us/office/excel-functions-alphabetical-b3944572-255d-4efb-bb96-c6d90033e188#bm19), so does not require a prefix when writing it to a spreadsheet.
This commit is contained in:
@@ -130,7 +130,6 @@ class FunctionPrefix
|
||||
. '|ifs'
|
||||
. '|maxifs'
|
||||
. '|minifs'
|
||||
. '|sumifs'
|
||||
. '|textjoin'
|
||||
// functions added with Excel 365
|
||||
. '|anchorarray'
|
||||
|
||||
@@ -37,6 +37,7 @@ class FunctionPrefixTest extends TestCase
|
||||
'DAYS/NETWORKDAYS 4' => ['ABS(_xlfn.DAYS(DATE(2023,1,1),TODAY()))', 'ABS(_xlfn.DAYS(DATE(2023,1,1),TODAY()))'],
|
||||
'DAYS/NETWORKDAYS 5' => ['NETWORKDAYS(DATE(2023,1,1),TODAY(), C:C)', 'NETWORKDAYS(DATE(2023,1,1),TODAY(), C:C)'],
|
||||
'COUNTIFS reclassified as Legacy' => ['COUNTIFS()', 'COUNTIFS()'],
|
||||
'SUMIFS reclassified as Legacy' => ['SUMIFS()', 'SUMIFS()'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user