PhpSpreadsheet/tests/data/Calculation/Statistical/AVERAGEIF.php
Mark Baker f1e82a212f
Extended unit tests (#1087)
* Merge branch 'master' of C:\Projects\PHPOffice\PHPSpreadsheet\develop with conflicts.

* Additional unit tests for average functions, and fix to AVERAGEIF() function if third argument is passed

* Update change log

* Stricter typed comparisons in AVERAGEIF() conditions

* Unit tests for BETADIST() and BETAINV()
2019-07-16 16:18:42 +02:00

49 lines
862 B
PHP

<?php
return [
[
14000,
[7000, 14000, 21000, 28000],
"<23000",
],
[
150000,
[100000, 200000, 300000, 400000],
"<250000",
],
[
'#DIV/0!',
[100000, 200000, 300000, 400000],
"<95000",
],
[
24500,
[100000, 200000, 300000, 400000],
">250000",
[7000, 14000, 21000, 28000],
],
[
8.2,
[2012, 2012, 2013, 2011, 2011, 2010],
2012,
[6, 10.4, 7, 12, 8, 15],
],
[
10,
[2012, 2012, 2013, 2011, 2011, 2010],
2011,
[6, 10.4, 7, 12, 8, 15],
],
[
7.8,
[2012, 2012, 2013, 2011, 2011, 2010],
">=2012",
[6, 10.4, 7, 12, 8, 15],
],
[
2011.2,
[2012, 2012, 2013, 2011, 2011, 2010],
"<2013",
],
];