Files
PhpSpreadsheet/tests/data/Calculation/Statistical/COUNTIFS.php
T
Mark Baker 08673b5820 Initial experiments using the new Database query logic with Conditional Statistical Functions (#1880)
- Refactoring of the Statistical Conditional functions (`AVERAGEIF()`, `AVERAGEIFS()`, `COUNTIF()`, `COUNTIFS()`, `MAXIFS()` and `MINIFS()` to use the new Database functions codebase.
- Extended unit testing
- Fix handling for null values
- Fixes to wildcard text searches

There's still scope for further improvements to memory usage and performance; but for now the code is stable with all unit tests passing
2021-02-27 18:26:12 +01:00

44 lines
981 B
PHP

<?php
return [
[
2,
['Y', 'Y', 'N'],
'=Y',
],
[
3,
['A', 'B', 'C', 'B', 'B'],
'=B',
],
[
3,
['C', 'B', 'A', 'B', 'B'],
'=B',
],
// [
// 2,
// [1, 2, 3, 'B', null, '', false],
// '<=2',
// ],
// [
// 2,
// [1, 2, 3, 'B', null, '', false],
// '<=B',
// ],
[
4,
['Female', 'Female', 'Female', 'Male', 'Male', 'Male', 'Female', 'Female', 'Female', 'Male', 'Male', 'Male'],
'Female',
[0.63, 0.78, 0.39, 0.55, 0.71, 0.51, 0.78, 0.81, 0.49, 0.35, 0.69, 0.65],
'>60%',
],
[
2,
['Maths', 'English', 'Science', 'Maths', 'English', 'Science', 'Maths', 'English', 'Science', 'Maths', 'English', 'Science'],
'Science',
[0.63, 0.78, 0.39, 0.55, 0.71, 0.51, 0.78, 0.81, 0.49, 0.35, 0.69, 0.65],
'<50%',
],
];