repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/BINOMDIST.php | tests/data/Calculation/Statistical/BINOMDIST.php | <?php
declare(strict_types=1);
return [
[
0.706399436132,
3, 8, 0.35, true,
],
[
0.2785857790625,
3, 8, 0.35, false,
],
[
0.538748204875,
50, 125, 0.4, true,
],
[
0.278585779062,
3, 8, 0.35, false,
],
[
0.20507... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/AVERAGEIF.php | tests/data/Calculation/Statistical/AVERAGEIF.php | <?php
declare(strict_types=1);
return [
[
14000,
[7000, 14000, 21000, 28000],
'<23000',
],
[
150000,
[100000, 200000, 300000, 400000],
'<250000',
],
[
'#DIV/0!',
[100000, 200000, 300000, 400000],
'<95000',
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/BETADIST.php | tests/data/Calculation/Statistical/BETADIST.php | <?php
declare(strict_types=1);
return [
[
0.4059136,
0.4, 4, 5,
],
[
0.99596045887,
3, 5, 10, 1, 4,
],
[
0.960370937542,
3, 7.5, 9, 1, 4,
],
[
0.960370937542,
3, 7.5, 9, 4, 1,
],
[
0.598190307617,
7.5, ... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/FISHER.php | tests/data/Calculation/Statistical/FISHER.php | <?php
declare(strict_types=1);
return [
[
-1.472219489583,
-0.9,
],
[
-0.255412811883,
-0.25,
],
[
1.098612288668,
0.8,
],
[
0.972955074528,
0.75,
],
[
'#VALUE!',
'NAN',
],
[
'#NUM!',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/KURT.php | tests/data/Calculation/Statistical/KURT.php | <?php
declare(strict_types=1);
return [
[
-0.1517996372084,
[3, 4, 5, 2, 3, 4, 5, 6, 4, 7],
],
[
0.532657874050135,
[4, 5, 4, 4, 4, 4, 4, 2, 3, 5, 5, 3],
],
[
'#DIV/0!',
['A', 'B', 'C', 'D', 'E'],
],
[
'#DIV/0!',
[1, 2, 3, 'A'... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/STDEVPA.php | tests/data/Calculation/Statistical/STDEVPA.php | <?php
declare(strict_types=1);
return [
[
26.0545581424825,
[1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299],
],
[
'#DIV/0!',
[],
],
[
0.5,
[true, false],
],
[
0.471404520791,
[true, false, 1],
],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/BasicCOUNT.php | tests/data/Calculation/Statistical/BasicCOUNT.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Shared\Date;
return [
[
5,
[-1, 0, 1, 2, 3],
],
[
7,
[
Date::stringToExcel('1900-02-01'),
0,
null,
1.2,
'',
2.4,
'',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/MIN.php | tests/data/Calculation/Statistical/MIN.php | <?php
declare(strict_types=1);
return [
[
2,
10, 7, 2, 9, 27,
],
[
-9,
10, 7, -9, '-27', 2,
],
[
0,
null, 'STRING', true, '', '27',
],
'error among arguments' => [
'#DIV/0!',
1, 3, '=5/0', -2,
],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/VARP_ODS.php | tests/data/Calculation/Statistical/VARP_ODS.php | <?php
declare(strict_types=1);
return [
[
678.84,
[1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299],
],
[
0.25,
[true, false],
],
[
0.222222222222,
[true, false, 1],
],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/NORMINV.php | tests/data/Calculation/Statistical/NORMINV.php | <?php
declare(strict_types=1);
return [
[42.000002008416, 0.908789, 40, 1.5],
[5.50669420572, 0.6, 5, 2],
[63.813775624441, 0.25, 65.5, 2.5],
[7.074774056039, 0.015, 12.5, 2.5],
[17.925225943961, 0.985, 12.5, 2.5],
['#NUM!', -0.5, 2.2, 3.3],
['#NUM!', 1.5, 2.2, 3.3],
['#NUM!', 0.5, 2.2... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/NORMSDIST.php | tests/data/Calculation/Statistical/NORMSDIST.php | <?php
declare(strict_types=1);
return [
[0.908788780274, 1.333333333333],
[0.788144601416, 0.8],
[0.841344746068, 1.0],
[0.158655253931, -1.0],
[0.066807201269, -1.5],
[0.5, 0],
[0.989275889978, 2.3],
['#VALUE!', 'NaN'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/CHIINVLeftTail.php | tests/data/Calculation/Statistical/CHIINVLeftTail.php | <?php
declare(strict_types=1);
return [
[
4.671330448981,
0.3, 7,
],
[
12.548861396889,
0.75, 10,
],
[
3.283020286760,
0.93, 1,
],
[
1.832581463748,
0.6, 2,
],
[
0.454936423120,
0.5, 1,
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/CORREL.php | tests/data/Calculation/Statistical/CORREL.php | <?php
declare(strict_types=1);
return [
[
0.997054485502,
[3, 2, 4, 5, 6],
[9, 7, 12, 15, 17],
],
[
0.870035103816,
[2, 10, 7, 17, 14, 16, 8, 12, 11, 15, 18, 3, 4, 1, 6, 5, 13, 19, 20, 9],
[22.9, 45.78, 33.49, 49.77, 40.94, 36.18, 21.05, 50.57, 31.32, 53.76,... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/AVEDEV.php | tests/data/Calculation/Statistical/AVEDEV.php | <?php
declare(strict_types=1);
return [
[
1.020408163265,
[4, 5, 6, 7, 5, 4, 3],
],
[
1.65,
[10.5, 7.2],
],
[
17.2,
[7.2, 5.4, 45],
],
[
61.504,
[10.5, 7.2, 200, 5.4, 8.1],
],
[
[1.825, '#VALUE!'],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/NEGBINOMDIST.php | tests/data/Calculation/Statistical/NEGBINOMDIST.php | <?php
declare(strict_types=1);
return [
[
0.05504866037517786,
10, 5, 0.25,
],
[
0.047210693359375,
6, 12, 0.5,
],
[
0.0805901288986206,
12, 12, 0.5,
],
[
0.057564377784729004,
15, 12, 0.5,
],
[
'#VALUE!',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/AVERAGEA.php | tests/data/Calculation/Statistical/AVERAGEA.php | <?php
declare(strict_types=1);
return [
[
7.0,
[10, 7, 9, 2],
],
[
[5.6, '#VALUE!'],
[10, 7, 9, 2, 'STRING VALUE'],
],
[
8.85,
[10.5, 7.2],
],
[
43.74,
[10.5, 7.2, 200, true, false],
],
[
0.5,
[true, fa... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/GAMMAINV.php | tests/data/Calculation/Statistical/GAMMAINV.php | <?php
declare(strict_types=1);
return [
[
10.0000111914377,
0.068094, 9, 2,
],
[
5.348120627447,
0.5, 3, 2,
],
[
'#VALUE!',
'NaN', 3, 2,
],
[
'#VALUE!',
0.5, 'NaN', 2,
],
[
'#VALUE!',
0.5, 3, 'NaN',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/COUNTIFS.php | tests/data/Calculation/Statistical/COUNTIFS.php | <?php
declare(strict_types=1);
return [
'no argument' => [
'exception',
],
[
2,
['Y', 'Y', 'N'],
'=Y',
],
[
3,
['A', 'B', 'C', 'B', 'B'],
'=B',
],
[
3,
['C', 'B', 'A', 'B', 'B'],
'=B',
],
// TODO I beli... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/QUARTILE.php | tests/data/Calculation/Statistical/QUARTILE.php | <?php
declare(strict_types=1);
return [
[
3.5,
[1, 2, 4, 7, 8, 9, 10, 12],
1,
],
[
5.4,
[10.5, 7.2, 200, 5.4, 8.1],
0,
],
[
7.2,
[10.5, 7.2, 200, 5.4, 8.1],
1,
],
[
8.1,
[10.5, 7.2, 200, 5.4, 8.1],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/OpenOfficeCOUNT.php | tests/data/Calculation/Statistical/OpenOfficeCOUNT.php | <?php
declare(strict_types=1);
return [
'passing range count bool but not null nor text numbers' => [
5,
[
// The index simulates a cell value
// Numbers and Booleans are both counted
'0.1.A' => 'A',
'0.2.A' => 1,
'0.3.A' => true,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/LOGNORMDIST.php | tests/data/Calculation/Statistical/LOGNORMDIST.php | <?php
declare(strict_types=1);
return [
[0.0390835557068, 4, 3.5, 1.2],
[0.066417114799, 12, 10, 5],
['#NUM!', -1.1, 2.2, 3.3],
['#NUM!', 1.1, 2.2, -3.3],
['#VALUE!', 'NaN', 0.1, 0.2],
['#VALUE!', 1.1, 'NAN', 0.2],
['#VALUE!', 1.1, 0.1, 'NAN'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/PERCENTILE.php | tests/data/Calculation/Statistical/PERCENTILE.php | <?php
declare(strict_types=1);
return [
[
1.9,
[1, 2, 3, 4],
0.3,
],
[
3.4,
[1, 2, 3, 4],
0.8,
],
[
3.25,
[1, 2, 3, 4],
0.75,
],
[
8.05,
[7, 8, 9, 20],
0.35,
],
[
8.1,
[1... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/NORMDIST.php | tests/data/Calculation/Statistical/NORMDIST.php | <?php
declare(strict_types=1);
return [
[0.9087887802741, 42, 40, 1.5, true],
[0.109340049784, 42, 40, 1.5, false],
[0.0176032663382, 50, 40, 20, false],
[0.2524925375469, 0.8, 1, 0.3, true],
[0.8413447460685, 68, 65.5, 2.5, true],
['#NUM!', 42, 40, -1.5, true],
['#VALUE!', 'NaN', 40, 1.5,... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/NORMSINV.php | tests/data/Calculation/Statistical/NORMSINV.php | <?php
declare(strict_types=1);
return [
[1.33333467227723, 0.908789],
[-0.67448975022342, 0.25],
[0.12566134687610, 0.55],
[1.28155156414015, 0.9],
['#VALUE!', 'NaN'],
['#NUM!', -0.9],
['#NUM!', 1.9],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/NORMSDIST2.php | tests/data/Calculation/Statistical/NORMSDIST2.php | <?php
declare(strict_types=1);
return [
[0.908788780274, 1.333333333333, true],
[0.164010074676, 1.333333333333, false],
[0.352065326764, 0.5, false],
[0.788144601416, 0.8, true],
[0.841344746068, 1.0, true],
[0.158655253931, -1.0, true],
[0.066807201269, -1.5, true],
[0.129517595666, ... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/DEVSQ.php | tests/data/Calculation/Statistical/DEVSQ.php | <?php
declare(strict_types=1);
return [
[
48,
[4, 5, 8, 7, 11, 4, 3],
],
[
47.5,
[1, 3, 5, 2, 9, 7],
],
[
79.875,
[1, 3, 5, 2, 9, 7, 8, 10],
],
[
'#NUM!',
['A', 'B', 'C', 'D'],
],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/GAUSS.php | tests/data/Calculation/Statistical/GAUSS.php | <?php
declare(strict_types=1);
return [
[0.4772498680518, 2],
[-0.4999997133484, -5],
[0.0, 0],
[0.0398278372770, 0.1],
[0.4937903346742, 2.5],
['#VALUE!', 'NAN'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/ExcelCOUNT.php | tests/data/Calculation/Statistical/ExcelCOUNT.php | <?php
declare(strict_types=1);
return [
'passing range do not count bool, null, or text numbers' => [
3,
[
// The index simulates a cell value
'0.1.A' => 'A',
'0.2.A' => 1,
'0.3.A' => true,
'0.4.A' => 2.9,
'0.5.A' => false,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/PERMUTATIONA.php | tests/data/Calculation/Statistical/PERMUTATIONA.php | <?php
declare(strict_types=1);
return [
[
5,
5, 1,
],
[
2,
2.2, 1.1,
],
[
5,
5.1, 1.9,
],
[
1,
1, 2,
],
[
'#NUM!',
-1, 2,
],
[
'#NUM!',
1, -2,
],
[
'#VALUE!',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/MODE.php | tests/data/Calculation/Statistical/MODE.php | <?php
declare(strict_types=1);
return [
[4.1, '{5.6,4.1,4.1,3,2,4.1}'], // Calculated value was #N/A
[4.1, '5.6,4.1,4.1,3,2,4.1'],
[3, '3,3,4,4'],
[4, '4,3,3,4'], // Calculated value was 3
['#N/A', '1,2,3,4'],
[2, '1,2,2,"3","3","3"'],
['#N/A', '"3","3","3"'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/TDIST2T.php | tests/data/Calculation/Statistical/TDIST2T.php | <?php
declare(strict_types=1);
return [
[
0.054644929976,
1.959999998, 60,
],
[
0.340893132302,
1, 10,
],
[
0.056475980427,
2, 25,
],
'test 2 derived from Perl suite 2-tail' => [
0.0082602,
6.251, 3,
],
'issue 4167' =>... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/SLOPE.php | tests/data/Calculation/Statistical/SLOPE.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Shared\Date;
return [
[
0.6,
[3, 6, 9, 12],
[5, 10, 15, 20],
],
[
1.0,
[1, 2, 3, 4],
[10, 11, 12, 13],
],
[
0.2,
[2, 4, 6],
[10, 20, 30],
],
[
4.6285... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/GAMMADIST.php | tests/data/Calculation/Statistical/GAMMADIST.php | <?php
declare(strict_types=1);
return [
[
0.03263913041829,
10.00001131, 9, 2, false,
],
[
0.06809400387,
10.00001131, 9, 2, true,
],
[
0.112020903828,
6, 3, 2, false,
],
[
0.576809918873,
6, 3, 2, true,
],
'Boolean as... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Statistical/COUNTBLANK.php | tests/data/Calculation/Statistical/COUNTBLANK.php | <?php
declare(strict_types=1);
return [
[
4,
[-1, null, 0, '', 1, null, 2, '', 3],
],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/XORLiteral.php | tests/data/Calculation/Logical/XORLiteral.php | <?php
declare(strict_types=1);
return [
'both boolean true' => [false, 'true, true'],
'boolean xor string-true' => [false, 'true, "true"'],
'true xor non-boolean-string' => [true, 'true, "xyz"'],
'non-boolean-string xor true' => [true, '"xyz", true'],
'empty-string xor true' => [true, '"", true'],... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/XOR.php | tests/data/Calculation/Logical/XOR.php | <?php
declare(strict_types=1);
return [
'no arguments' => [
'exception',
],
'only argument is null reference' => [
'#VALUE!',
null,
],
[
false,
true, true,
],
[
true,
true, false, false,
],
[
true,
true, false,... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/IF.php | tests/data/Calculation/Logical/IF.php | <?php
declare(strict_types=1);
return [
'no arguments' => [
'exception',
],
'1 argument true' => [
'exception',
true,
],
'1 argument false' => [
'exception',
false,
],
'value_if_false omitted condtion is true' => [
'ABC',
true,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/AND.php | tests/data/Calculation/Logical/AND.php | <?php
declare(strict_types=1);
return [
'no arguments' => [
'exception',
],
'only argument is null reference' => [
'#VALUE!',
null,
],
// Boolean TRUE and NULL
[
true,
true,
null,
],
// Boolean FALSE and NULL
[
false,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/IFERROR.php | tests/data/Calculation/Logical/IFERROR.php | <?php
declare(strict_types=1);
return [
'empty cell treated as 0' => [
0,
null,
'Error',
],
[
true,
true,
'Error',
],
[
42,
42,
'Error',
],
[
'',
'',
'Error',
],
[
'ABC',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/SWITCH.php | tests/data/Calculation/Logical/SWITCH.php | <?php
declare(strict_types=1);
return [
'match value1 A result is C' => [
'C',
'A',
'A',
'C',
'B',
'D',
'??',
],
'match value2 2 result is female' => [
'Female',
2,
'1',
'Male',
'2',
'Female',
],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/OR.php | tests/data/Calculation/Logical/OR.php | <?php
declare(strict_types=1);
return [
'no arguments' => [
'exception',
],
'only argument is null reference' => [
'#VALUE!',
null,
],
// Boolean TRUE and NULL
[
true,
true,
null,
],
// Boolean FALSE and NULL
[
false,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/IFNA.php | tests/data/Calculation/Logical/IFNA.php | <?php
declare(strict_types=1);
return [
[
55,
55, 'not found',
],
[
'not found',
'#N/A', 'not found',
],
'non-NA error' => ['#VALUE!', '#VALUE!', 'not found'],
'empty cell treated as 0' => [0, null, 'Error'],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/NOT.php | tests/data/Calculation/Logical/NOT.php | <?php
declare(strict_types=1);
return [
'no arguments' => [
'exception',
],
[
true,
null,
],
[
false,
-1,
],
[
true,
0,
],
[
false,
1,
],
[
false,
2,
],
[
false,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/IFS.php | tests/data/Calculation/Logical/IFS.php | <?php
declare(strict_types=1);
return [
'no arguments' => ['exception'],
[
1,
true,
1,
],
[
'#N/A',
false,
1,
true,
],
[
'ABC',
true,
'ABC',
],
[
'#N/A',
false,
false,
false,... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/ANDLiteral.php | tests/data/Calculation/Logical/ANDLiteral.php | <?php
declare(strict_types=1);
return [
'both boolean true' => [true, 'true, true'],
'boolean and string-true' => [true, 'true, "true"'],
'true and non-boolean-string' => [true, 'true, "xyz"'],
'non-boolean-string and true' => [true, '"xyz", true'],
'empty-string and true' => [true, '"", true'],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Logical/ORLiteral.php | tests/data/Calculation/Logical/ORLiteral.php | <?php
declare(strict_types=1);
return [
'both boolean true' => [true, 'true, true'],
'boolean or string-true' => [true, 'true, "true"'],
'true or non-boolean-string' => [true, 'true, "xyz"'],
'non-boolean-string or true' => [true, '"xyz", true'],
'empty-string or true' => [true, '"", true'],
'... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/FV.php | tests/data/Calculation/Financial/FV.php | <?php
declare(strict_types=1);
// rate, nper, pmt, pv, type, Result
return [
[
2581.4033740600998,
[0.005, 10, -200, -500, 1],
],
[
2421.371872695160,
[-0.005, 10, -200, -500, 1],
],
[
12682.503013197,
[0.01, 12, -1000],
],
[
11361.5... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/USDOLLAR.php | tests/data/Calculation/Financial/USDOLLAR.php | <?php
declare(strict_types=1);
return [
['$12,345.67890', 12345.6789, 5],
];
| php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/PRICE3.php | tests/data/Calculation/Financial/PRICE3.php | <?php
declare(strict_types=1);
// Result, Settlement, Maturity, Rate, Yield, Redemption, Frequency, Basis
// On the result line, the value is ODS's calculation.
// This agrees with Gnumeric, PhpSpreadsheet, and the published algorithm at:
//https://support.office.com/en-us/article/price-function-3ea9deac-8dfa-436... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/AMORDEGRC.php | tests/data/Calculation/Financial/AMORDEGRC.php | <?php
declare(strict_types=1);
// Cost, Date purchased, End of the 1st period, Salvage, Period, Depreciation, Basis, Result
return [
[
776,
2400, '2008-08-19', '2008-12-31', 300, 1, 0.15, 1,
],
[
776,
2400, '2008-08-19', '2008-12-31', 300, 1, 0.15, 0,
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/CUMPRINC.php | tests/data/Calculation/Financial/CUMPRINC.php | <?php
declare(strict_types=1);
// rate, nper, pv, start_period, end_period, type, result
return [
[
-934.10712342088004,
0.0075,
360,
125000,
13,
24,
0,
],
[
-68.278271180977001,
0.0075,
360,
125000,
1,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/TBILLEQ.php | tests/data/Calculation/Financial/TBILLEQ.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[
0.094151494,
'31-Mar-2008', '1-Jun-2008', 0.0914,
],
[
ExcelError::VALUE(),
'Not a Valid Date', '1-Jun-2008', 0.09,
],
[
ExcelError::VALUE(),
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/TBILLPRICE.php | tests/data/Calculation/Financial/TBILLPRICE.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[
98.45,
'31-Mar-2008', '1-Jun-2008', 0.09,
],
[
ExcelError::VALUE(),
'Not a Valid Date', '1-Jun-2008', 0.09,
],
[
ExcelError::VALUE(),
'31-Mar-... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/SYD.php | tests/data/Calculation/Financial/SYD.php | <?php
declare(strict_types=1);
return [
[
3000,
[10000, 1000, 5, 1],
],
[
2400,
[10000, 1000, 5, 2],
],
[
1800,
[10000, 1000, 5, 3],
],
[
1200,
[10000, 1000, 5, 4],
],
[
600,
[10000, 1000, 5, 5],
],... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/DOLLARFR.php | tests/data/Calculation/Financial/DOLLARFR.php | <?php
declare(strict_types=1);
// decimal_dollar, fraction, result
return [
[
1.24,
1.6,
4,
],
[
-1.24,
-1.6,
4,
],
[
1.02,
1.125,
16,
],
[
1.04,
1.125,
32,
],
[
1.01,
1... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/PRICE.php | tests/data/Calculation/Financial/PRICE.php | <?php
declare(strict_types=1);
// Result, Settlement, Maturity, Rate, Yield, Redemption, Frequency, Basis
return [
[
'#VALUE!',
'xyz',
'15-Nov-2017',
0.0575,
0.065,
100,
2,
0,
],
[
'#VALUE!',
'15-Feb-2008',
'xyz',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/IRR.php | tests/data/Calculation/Financial/IRR.php | <?php
declare(strict_types=1);
// values, guess, Result
return [
[
-0.02124484827341,
[
-70000,
12000,
15000,
18000,
21000,
],
],
[
0.086630948036519995,
[
-70000,
12000,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/NOMINAL.php | tests/data/Calculation/Financial/NOMINAL.php | <?php
declare(strict_types=1);
// effect_rate, npery, result
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[
0.052500319868356002,
0.053543,
4,
],
[
0.096454756337780001,
0.10000000000000001,
4,
],
[
0.0976176963... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/NPER.php | tests/data/Calculation/Financial/NPER.php | <?php
declare(strict_types=1);
// rate, pmt, pv, fv, type, result
return [
[
59.673865674295001,
[0.01, -100, -1000, 10000, 1],
],
[
60.082122853762002,
[0.01, -100, -1000, 10000],
],
[
-9.5785940398132006,
[0.01, -100, -1000],
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/DOLLARDE.php | tests/data/Calculation/Financial/DOLLARDE.php | <?php
declare(strict_types=1);
// fractional_dollar, fraction, result
return [
[
2.5,
1.6,
4,
],
[
-2.5,
-1.6,
4,
],
[
1.125,
1.02,
16,
],
[
1.3125,
1.1000000000000001,
32,
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/DB.php | tests/data/Calculation/Financial/DB.php | <?php
declare(strict_types=1);
// cost, salvage, life, period, month, result
return [
[
186083.33333333,
1000000,
100000,
6,
1,
7,
],
[
259639.41666667,
1000000,
100000,
6,
2,
7,
],
[
176814.44... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/PV.php | tests/data/Calculation/Financial/PV.php | <?php
declare(strict_types=1);
return [
[
-52990.70632392715,
[0.05 / 12, 60, 1000],
],
[
-68327.092460502600,
[-0.05 / 12, 60, 1000],
],
[
-26762.755452881098,
[0.10 / 4, 16, 2000, 0, 1],
],
[
-38955.527352284700,
[-0.10 / 4,... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/YIELDMAT.php | tests/data/Calculation/Financial/YIELDMAT.php | <?php
declare(strict_types=1);
return [
[
0.06095433369153867,
'15-Mar-2008', '3-Nov-2008', '8-Nov-2007', 0.0625, 100.0123, 0,
],
[
0.06095433369153867,
'15-Mar-2008', '3-Nov-2008', '8-Nov-2007', 0.0625, 100.0123, null,
],
[
0.04210977320221025,
'1-J... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/XIRR.php | tests/data/Calculation/Financial/XIRR.php | <?php
declare(strict_types=1);
// result, message, values, dates, guess
return [
'If values and dates contain a different number of values, returns the #NUM! error value' => [
'#NUM!',
[4000, -46000],
['2015-01-04'],
0.1,
],
'Cash flows are all negative' => [
'#NUM... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/YIELDDISC.php | tests/data/Calculation/Financial/YIELDDISC.php | <?php
declare(strict_types=1);
return [
[
0.05282257198685834,
'16-Feb-2008', '1-Mar-2008', 99.795, 100, 2,
],
[
0.06220123250590336,
'1-Jan-2017', '30-Jun-2017', 97, 100,
],
[
0.06220123250590336,
'1-Jan-2017', '30-Jun-2017', 97, 100, 0,
],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/PRICEMAT.php | tests/data/Calculation/Financial/PRICEMAT.php | <?php
declare(strict_types=1);
return [
[
99.98449887555694,
'15-Feb-2008', '13-Apr-2008', '11-Nov-2007', 0.061, 0.061, 0,
],
[
99.98449887555694,
'15-Feb-2008', '13-Apr-2008', '11-Nov-2007', 0.061, 0.061, null,
],
[
106.8486842105263,
'1-Apr-2017', ... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/FVSCHEDULE.php | tests/data/Calculation/Financial/FVSCHEDULE.php | <?php
declare(strict_types=1);
// principal, schedule, Result
return [
[
1.3308899999999999,
1,
[
0.089999999999999997,
0.11,
0.10000000000000001,
],
],
[
13.3089,
10,
[
0.089999999999999997,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/PPMT.php | tests/data/Calculation/Financial/PPMT.php | <?php
declare(strict_types=1);
return [
[
-75.623186008367,
[0.10 / 12, 1, 2 * 12, 2000],
],
[
-91.597714484189,
[-0.10 / 12, 1, 2 * 12, 2000],
],
[
-27598.053462421,
[0.08, 10, 10, 200000],
],
[
-13356.484444134500,
[-0.08, 1... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/PDURATION.php | tests/data/Calculation/Financial/PDURATION.php | <?php
declare(strict_types=1);
return [
[
10.33803507,
[0.04, 10000, 15000],
],
[
3.859866162622655,
[0.025, 2000, 2200],
],
[
87.6054764193714,
[0.025 / 12, 1000, 1200],
],
[
3.5644379226484437,
[0.03, 9000, 10000],
],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/COUPNUM.php | tests/data/Calculation/Financial/COUPNUM.php | <?php
declare(strict_types=1);
// Settlement, Maturity, Frequency, Basis, Result
return [
[
4,
'25-Jan-2007',
'15-Nov-2008',
2,
1,
],
[
8,
'2011-01-01',
'2012-10-25',
4,
0,
],
[
8,
'2011-01-01',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/IPMT.php | tests/data/Calculation/Financial/IPMT.php | <?php
declare(strict_types=1);
// rate, per, nper, pv, fv, type, Result
return [
[
-22.858787457480013,
[0.0085, 3, 3, 8000],
],
[
22.473454124370,
[-0.0085, 3, 3, 8000],
],
[
-292.44712990937001,
[0.10, 3, 3, 8000],
],
[
239.1143911... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/COUPPCD.php | tests/data/Calculation/Financial/COUPPCD.php | <?php
declare(strict_types=1);
// Settlement, Maturity, Frequency, Basis, Result
return [
[
39036,
'25-Jan-2007',
'15-Nov-2008',
2,
1,
],
[
40476,
'2011-01-01',
'2012-10-25',
4,
],
[
40476,
'2011-01-01',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/CUMIPMT.php | tests/data/Calculation/Financial/CUMIPMT.php | <?php
declare(strict_types=1);
// rate, nper, pv, start_period, end_period, type, result
return [
[
-11135.232130750999,
0.0075,
360,
125000,
13,
24,
0,
],
[
-937.5,
0.0075,
360,
125000,
1,
1,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/AMORLINC.php | tests/data/Calculation/Financial/AMORLINC.php | <?php
declare(strict_types=1);
// Cost, Date purchased, End of the 1st period, Salvage, Period, Depreciation, Basis, Result
return [
[
360,
2400, '2008-08-19', '2008-12-31', 300, 1, 0.15, 1,
],
[
576,
2400, '2008-08-19', '2008-12-31', 300, 2, 0.24, 1,
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/ACCRINT.php | tests/data/Calculation/Financial/ACCRINT.php | <?php
declare(strict_types=1);
// Issue date, 1st Interest, Settlement, Rate, Par, Freq, Basis, Result
return [
[
16.6666666666666,
'2008-03-01', '2008-08-31', '2008-05-01', 0.10, 1000, 2, 0,
],
[
15.5555555555559,
'2008-03-05', '2008-08-31', '2008-05-01', 0.10, 1000, 2, 0... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/RECEIVED.php | tests/data/Calculation/Financial/RECEIVED.php | <?php
declare(strict_types=1);
return [
[
1014584.6544071021,
'15-Feb-2008', '15-May-2008', 1000000, 0.0575, 2,
],
[
1120.2128404396835,
'6-Jul-2017', '15-Jan-2020', 1000, 0.0425,
],
[
1120.2128404396835,
'6-Jul-2017', '15-Jan-2020', 1000, 0.0425, nu... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/DISC.php | tests/data/Calculation/Financial/DISC.php | <?php
declare(strict_types=1);
// settlement, maturity, price, redemption, basis, result
return [
[
0.052420213,
'2007-01-25',
'2007-06-15',
97.974999999999994,
100,
1,
],
[
0.01,
'2010-04-01',
'2015-03-31',
95,
100,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/COUPDAYBS.php | tests/data/Calculation/Financial/COUPDAYBS.php | <?php
declare(strict_types=1);
// Settlement, Maturity, Frequency, Basis, Result
return [
[
71,
'25-Jan-2007',
'15-Nov-2008',
2,
1,
],
[
66,
'2011-01-01',
'2012-10-25',
4,
],
[
66,
'2011-01-01',
'2012-... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/EFFECT.php | tests/data/Calculation/Financial/EFFECT.php | <?php
declare(strict_types=1);
// nominal_rate, npery, Result
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[
0.053542667370758003,
0.052499999999999998,
4,
],
[
0.103812890625,
0.10000000000000001,
4,
],
[
0.102... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/COUPDAYSNC.php | tests/data/Calculation/Financial/COUPDAYSNC.php | <?php
declare(strict_types=1);
// Settlement, Maturity, Frequency, Basis, Result
return [
[
110,
'25-Jan-2007',
'15-Nov-2008',
2,
1,
],
[
24,
'2011-01-01',
'2012-10-25',
4,
],
[
24,
'2011-01-01',
'2012... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/PMT.php | tests/data/Calculation/Financial/PMT.php | <?php
declare(strict_types=1);
return [
[
-1037.032089359164,
[0.08 / 12, 10, 10000],
],
[
-963.701199976010,
[-0.08 / 12, 10, 10000],
],
[
-1030.164327177977,
[0.08 / 12, 10, 10000, null, 1],
],
[
-970.168993264440,
[-0.08 / ... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/PRICEDISC.php | tests/data/Calculation/Financial/PRICEDISC.php | <?php
declare(strict_types=1);
return [
[
90.0,
['01-Apr-2017', '31-Mar-2021', 0.025, 100],
],
[
97.625,
['2008-02-15', '2008-11-30', 0.03, 100, null],
],
[
97.6311475409836,
['2008-02-15', '2008-11-30', 0.03, 100, 1],
],
[
'#VALUE!',... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/MIRR.php | tests/data/Calculation/Financial/MIRR.php | <?php
declare(strict_types=1);
// values, finance_rate, reinvestment_rate, Result
return [
[
0.12609413036591,
[
-120000,
[
39000,
30000,
21000,
37000,
46000,
],
],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/COUPNCD.php | tests/data/Calculation/Financial/COUPNCD.php | <?php
declare(strict_types=1);
// Settlement, Maturity, Frequency, Basis, Result
return [
[
39217,
'25-Jan-2007',
'15-Nov-2008',
2,
1,
],
[
40568,
'2011-01-01',
'2012-10-25',
4,
],
[
40568,
'2011-01-01',
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/SLN.php | tests/data/Calculation/Financial/SLN.php | <?php
declare(strict_types=1);
return [
[
1800,
[10000, 1000, 5],
],
[
1000,
[10000, 5000, 5],
],
[
1142.857142857143,
[8000, 0, 7],
],
[
50,
[500, 100, 8],
],
[
2250,
[30000, 7500, 10],
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/XNPV.php | tests/data/Calculation/Financial/XNPV.php | <?php
declare(strict_types=1);
// result, message, rate, values, dates
return [
'If rate is not numeric, returns the #VALUE! error value' => [
'#VALUE!',
'xyz',
[0, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000],
['2018-06-30', '2018-12-31', '2019-... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/ACCRINTM.php | tests/data/Calculation/Financial/ACCRINTM.php | <?php
declare(strict_types=1);
// Issue date, Settlement, Rate, Par, Basis, Result
return [
[
20.547945205478999,
'2008-04-01', '2008-06-15', 0.10, 1000, 3,
],
[
800,
'2010-01-01', '2010-12-31', 0.08, 10000,
],
[
800,
'2010-01-01', '2010-12-31', 0.0... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/DaysPerYear.php | tests/data/Calculation/Financial/DaysPerYear.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Financial\Constants as FinancialConstants;
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[360, 2020, FinancialConstants::BASIS_DAYS_PER_YEAR_NASD],
[366, 2020, FinancialConstants::BASIS_DAYS_PER_YEAR_ACTUAL],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/ISPMT.php | tests/data/Calculation/Financial/ISPMT.php | <?php
declare(strict_types=1);
// rate, per, nper, pv, result
return [
[
-66111.111111111,
0.0085,
1,
36,
8000000,
],
[
-533333.33333333,
0.10,
1,
3,
8000000,
],
[
-205.270833333,
0.004175,
1,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/INTRATE.php | tests/data/Calculation/Financial/INTRATE.php | <?php
declare(strict_types=1);
// Settlement, Maturity, Investment, Redemption, Basis, Result
return [
[
0.05768,
'2008-02-15',
'2008-05-15',
1000000,
1014420,
2,
],
[
0.225,
'2005-04-01',
'2010-03-31',
1000,
2125,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/DDB.php | tests/data/Calculation/Financial/DDB.php | <?php
declare(strict_types=1);
// cost, salvage, life, period, month, result
return [
[
0.13150684931507001,
2400,
300,
36500,
1,
],
[
0.13149964346031001,
2400,
300,
36500,
2,
],
[
0.13146362010870999,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/COUPDAYS.php | tests/data/Calculation/Financial/COUPDAYS.php | <?php
declare(strict_types=1);
// Settlement, Maturity, Frequency, Basis, Result
return [
[
181,
'25-Jan-2007',
'15-Nov-2008',
2,
1,
],
[
90,
'2011-01-01',
'2012-10-25',
4,
],
[
90,
'2011-01-01',
'2012... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/TBILLYIELD.php | tests/data/Calculation/Financial/TBILLYIELD.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[
0.09141696292534264,
'31-Mar-2008', '1-Jun-2008', 98.45,
],
[
ExcelError::VALUE(),
'Not a Valid Date', '1-Jun-2008', 98.45,
],
[
ExcelError::VALUE(),
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/NPV.php | tests/data/Calculation/Financial/NPV.php | <?php
declare(strict_types=1);
// rate, values, result
return [
[
1188.4434123352,
0.10,
-10000,
3000,
4200,
6800,
],
[
41922.061554931999,
0.08,
8000,
9200,
10000,
12000,
14500,
],
[
3... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/RATE.php | tests/data/Calculation/Financial/RATE.php | <?php
declare(strict_types=1);
// Periods, Payment, Present Value, Future Value, Type, Guess, Result
return [
[
0.0077014724882014003,
48,
-200,
8000,
],
[
0.046781916422493401,
60,
-6000,
120000,
],
[
-0.020442952219356499,
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/Financial/RRI.php | tests/data/Calculation/Financial/RRI.php | <?php
declare(strict_types=1);
return [
[
0.04137974399241062,
[10, 10000, 15000],
],
[
0.00099330737629133,
[96, 10000, 11000],
],
[
0.6747967875721199,
[10, 70, 12154],
],
[
'#VALUE!',
['NaN', 70, 12154],
],
[
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/DAYOpenOffice.php | tests/data/Calculation/DateTime/DAYOpenOffice.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
// OpenOffice Result, Argument
return [
[19, 22269],
[1, 30348],
[10, 30843],
[11, '11-Nov-1918'],
[28, '28-Feb-1904'],
[ExcelError::VALUE(), '30-Feb-1904'],
[ExcelError::VALUE(), 'Invalid'],
... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/DATEDIF.php | tests/data/Calculation/DateTime/DATEDIF.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[365, '2016-01-01', '2016-12-31', 'YD'],
[364, '2015-01-01', '2015-12-31', 'YD'],
[364, '2015-01-01', '2016-12-31', 'YD'],
[365, '2016-01-01', '2017-12-31', 'YD'],
[364, '2017-01-01', '2018-12... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/TIME.php | tests/data/Calculation/DateTime/TIME.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[0.757766203704, 18, 11, 11],
[0.260474537037, 6, 15, 5],
[0.520949074074, 12, 30, 10],
[0.781539351852, 18, 45, 25],
[0.647800925926, 15, 32, 50],
[0.458321759259, 11, false, -1],
[0.... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
PHPOffice/PhpSpreadsheet | https://github.com/PHPOffice/PhpSpreadsheet/blob/e33834b4ea2a02088becbb41fb8954d915b46b12/tests/data/Calculation/DateTime/SECOND.php | tests/data/Calculation/DateTime/SECOND.php | <?php
declare(strict_types=1);
use PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;
return [
[57, 0.2339930556],
[13, 0.4202893519],
[22, 0.60789351845],
[11, 0.8022106481],
[35, '11-Nov-1918 11:15:35'],
[0, '11:59 PM'],
[59, '23:59:59'],
[0, 3600],
[ExcelError::VALUE(... | php | MIT | e33834b4ea2a02088becbb41fb8954d915b46b12 | 2026-01-04T15:02:44.305364Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.