PhpSpreadsheet/tests/data/Calculation/MathTrig/SUMIF.php

124 lines
1.8 KiB
PHP
Raw Normal View History

<?php
return [
[
15,
[
[1],
[5],
[10],
],
'>=5',
],
[
10,
[
['text'],
[2],
],
'=text',
[
[10],
[100],
],
],
[
10,
[
['"text with quotes"'],
[2],
],
'="text with quotes"',
[
[10],
[100],
],
],
[
10,
[
['"text with quotes"'],
[''],
],
'>"', // Compare to the single character " (double quote)
[
[10],
[100],
],
],
[
100,
[
[''],
['anything'],
],
'>"', // Compare to the single character " (double quote)
[
[10],
[100],
],
],
[
10,
[
[1],
[2],
],
'<>', // any content
[
['non-numeric value'], // ignored in SUM
[10],
],
],
[
100,
[
['0'],
['some text'],
],
0, // Compare integer with string
[
[100],
[1],
],
],
[
100,
[
[0],
['some text'],
],
0, // Compare integer with integer
[
[100],
[1],
],
],
[
3,
[
[1],
[0],
2020-05-18 04:49:57 +00:00
[1],
],
1,
[
[3],
2020-05-18 04:49:57 +00:00
[4], // less elements in sum array
],
],
[
3,
[
[1],
2020-05-18 04:49:57 +00:00
[0], // less elements in condition array
],
1,
[
[3],
[4],
2020-05-18 04:49:57 +00:00
[5],
],
],
];