Files
PhpSpreadsheet/tests/data/Calculation/Statistical/AVERAGEIFS.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

43 lines
1.1 KiB
PHP

<?php
return [
[
80.5,
[75, 94, 86, 'incomplete'],
[75, 94, 86, 'incomplete'],
'>70',
[75, 94, 86, 'incomplete'],
'<90',
],
[
'#DIV/0!',
[85, 80, 93, 75],
[85, 80, 93, 75],
'>95',
],
[
87.5,
[87, 88, 'incomplete', 75],
[87, 88, 'incomplete', 75],
'<>incomplete',
[87, 88, 'incomplete', 75],
'>80',
],
[
174000,
[223000, 125000, 456000, 322000, 340000, 198000, 310000, 250000, 460000, 261000, 389000, 305000],
[1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4],
1,
['North', 'North', 'South', 'North', 'North', 'South', 'North', 'North', 'South', 'North', 'North', 'South'],
'North',
],
[
285500,
[223000, 125000, 456000, 322000, 340000, 198000, 310000, 250000, 460000, 261000, 389000, 305000],
[1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4],
'>2',
['Jeff', 'Chris', 'Carol', 'Jeff', 'Chris', 'Carol', 'Jeff', 'Chris', 'Carol', 'Jeff', 'Chris', 'Carol'],
'Jeff',
],
];