PhpSpreadsheet/tests/data/Calculation/Functions/ISFORMULA.php
Dominik Businger 98a1f0a8cf
Fix for worksheet lookup for worksheets with spaces in the title
Sheet titles containing " " or "!" will be quoted in formulas. This commit
fixes the lookup of sheets with this kind of title by trimming the quotes
during the lookup.

Without this any defined range referencing a sheet with " " or "!" in the title
name will be lost when reading the workbook from file.

Fixes #928
Closes 930
2019-07-24 22:15:35 -07:00

95 lines
1.1 KiB
PHP

<?php
return [
[
false,
'A1',
null,
],
[
false,
'A2',
-1,
],
[
false,
'A3',
0,
],
[
false,
'A4',
1,
],
[
false,
'A5',
'',
],
[
false,
'A6',
'2',
],
[
false,
'A7',
'#VALUE!',
],
[
false,
'A8',
'#N/A',
],
[
false,
'A9',
'TRUE',
],
[
false,
'A10',
true,
],
[
false,
'A11',
false,
],
[
true,
'A12',
'="ABC"',
],
[
true,
'A13',
'=A1',
],
[
true,
'A14',
'=\'Worksheet1\'!A1',
],
[
true,
'\'Worksheet1\'!A15',
'="HELLO WORLD"',
],
[
false,
'\'Worksheet1\'!A16',
'123',
],
[
true,
'A17',
'=\'Work sheet1\'!A1',
],
[
true,
'A18',
'=\'Work!sheet1\'!A1',
],
];