MarkBaker
bbe11eed37
Full unit tests for SUBTOTAL function
2018-05-06 23:43:02 +01:00
MarkBaker
f08eeaa2ed
Code works, but the tests don't yet
2018-04-21 20:34:25 +01:00
MarkBaker
36afa01d33
SUBTOTAL within a SUBTOAL range should be ignored
2018-04-21 01:33:26 +01:00
MarkBaker
04b4e74ec7
Basic unit testing for 100 series actions for SUBTOTAL() with hidden rows/columns
2018-04-20 07:24:11 +01:00
MarkBaker
1ece540254
Basic unit test for SUBTOTAL() function
2018-04-19 22:44:23 +01:00
Josh Grant
a089a87671
Avoid losing calculated value type
...
Closes #394
2018-03-03 11:51:06 +01:00
Josh Grant
148bee1991
Support `_xlfn.` prefix and add `ISFORMULA`, `MODE.SNGL`, `STDEV.S`, `STDEV.P`
...
This change adds support for newer functions that are prefixed
by _xlfn. (#356 ). The calculation engine has been updated to
recognise these as functions, and drop the _xlfn. part.
It also add a couple of the new functions such as STDEV.S/P,
MODE.SNGL, ISFORMULA.
Fixes #356
Closes #390
2018-02-26 09:35:53 +01:00
Adrien Crivelli
e31878ceb1
Check for MIME type to know if CSV reader can read a file
...
CSV reader used to accept any file without any kind of check. That made
users incorrectly believe that things were ok, even though there is no
way for CSV reader to read anything else that plain text files.
Fixes #167
2018-02-05 21:33:23 +09:00
MaxTingle
49775bd972
Fix cell ranges causing coordinate merge error
...
Fixes #319
Closes #328
2018-01-22 12:26:37 +09:00
Adrien Crivelli
481fc4a7c6
Support XML file without styles
...
Closes #331
Closes https://github.com/PHPOffice/PHPExcel/pull/559
Fixes https://github.com/PHPOffice/PHPExcel/issues/558
2018-01-14 17:08:50 +09:00
Adrien Crivelli
bf2dbbaf10
COLUMNS and ROWS functions crashed in some cases
...
Fixes #336
Fixes https://github.com/PHPOffice/PHPExcel/issues/1383
2018-01-13 18:01:50 +09:00
Adrien Crivelli
36441da330
Fix unit tests for 2018
...
Closes #311
2018-01-02 00:39:38 +09:00
Adrien Crivelli
139d85d874
Better auto-detection of CSV separators
...
Closes #305
2017-12-28 12:25:37 +09:00
MarkBaker
90366f9dd1
style fixes
2017-11-26 23:18:11 +00:00
MarkBaker
19fd27811d
Improved GCD() evaluation and additional tests
2017-11-26 22:13:29 +00:00
Adrien Crivelli
8d76020590
Consistent `stringFromColumnIndex()` and `columnIndexFromString()`
...
Column indexes are always based on 1 everywhere in PhpSpreadsheet.
This is consistent with rows starting at 1, as well as Excel
function `COLUMN()`. It should also make it easier to reason about
columns and rows and remove any doubts whether a specific method is
expecting 0 based or 1 based indexes.
Fixes #273
Fixes https://github.com/PHPOffice/PHPExcel/issues/307
Fixes https://github.com/PHPOffice/PHPExcel/issues/476
2017-11-26 15:29:08 +09:00
Maxim
4b4bac53aa
INDEX(): fix getting row and col numbers from references ( #239 )
...
Allow to use cell references as row and column in function INDEX(). Eg:
```
=INDEX(A1:B5, A9)
```
2017-10-06 14:01:20 +09:00
Maxim
088a76737e
Fix DAY() function with 0<x<1 input ( #230 )
...
Also bring support for OpenOffice DATE() calculation method
2017-10-04 12:57:01 +09:00
Maxim
810f174d6e
Fix INDEX() function when rows count less than row number ( #233 )
2017-09-30 12:13:20 +09:00
GreatHumorist
2abe56b946
Support missing attribute `r` in `c` node when reading xlsx
...
When describing a cell, the cell reference (r="A1") is optional.
When not present, we should just increment the index of the last processed row.
Fixes #201
Closes #225
2017-09-22 14:49:38 +09:00
GreatHumorist
0477e6fcfe
In Xml reader throw exception in case of invalid XML ( #222 )
...
When the xml file is not a standard xml file, the `simplexml_load_string` will return false, this will cause an error on "$xml->getNamespaces(true);" . So instead of showing the error, we throw an exception.
2017-09-20 14:20:12 +09:00
Bill Blume
2761773b3d
Merge data-validation collections to reduce the final file size
...
Closes #131
Closes #193
2017-09-08 02:27:18 +09:00
Markus Lanthaler
3ee9cc5ce6
Infer CSV delimiter if it hasn't been set explicitly
...
Closes #141
2017-04-20 17:02:03 +09:00
Paolo Agostinetto
fd83c191ea
MATCH function behavior when third parameter is equal to 1 or -1
...
Fixes #51
Closes #122
2017-04-01 12:36:02 +09:00
Adrien Crivelli
5fce89e76b
Merge pull request #108 from redokun/fix-105
...
Ods writer: add support for basic text styling (Fix #105 )
2017-03-06 11:39:50 +09:00
Christian Schmidt
3560f11935
Replace mbStrReplace() with str_replace()
...
By design, UTF-8 allows any byte-oriented substring searching algorithm,
since the sequence of bytes for a character cannot occur anywhere else
([source](https://en.wikipedia.org/wiki/UTF-8#Advantages_3 )).
So `str_replace()` also works for UTF-8-encoded strings, assuming that
the input strings are valid UTF-8 strings. The previous implementation
of mbStrReplace() did nothing to detect invalid strings.
Also, `str_replace()` does not support [Unicode equivalence](https://en.wikipedia.org/wiki/Unicode_equivalence ),
but nor do the other `mb_string` functions, and nor does `=SUBSTITUTE()` in Excel
(tested on Excel for Mac version 15.19.1, Excel 2016 for Windows and LibreOffice 5.1).
Closes #109
2017-03-06 11:33:06 +09:00
Paolo Agostinetto
219e4e6258
Writer\Ods\Content: Set "CompatibilityMode" before and after running the tests in
...
order to avoid conflicts with other tests
2017-03-04 17:18:18 +01:00
Paolo Agostinetto
4efda2a512
Ods\Writer\Content: added support for xr styles (bold, italic, font family, font size, underline, bg color)
2017-03-04 17:18:18 +01:00
Paolo Agostinetto
5620510991
Writer\Ods\Content: basic unit tests
2017-03-04 17:18:18 +01:00
Paolo Agostinetto
c954eddf57
Ods reader: fix sheet count and added a test for sheet names
2017-02-20 21:02:04 +01:00
Paolo Agostinetto
1dba2d1766
Ods reader: tests for repeated spaces and rich text
2017-02-18 20:49:48 +01:00
Paolo Agostinetto
bcd1bc364c
Ods reader: test loading of Worksheets
2017-02-18 13:55:22 +01:00
Paolo Agostinetto
3c7b2e23da
Added unit tests for Ods reader
2017-02-18 13:36:08 +01:00
Adrien Crivelli
8dddf56c2e
Use proper syntax for variadic functions
...
This simplify code, increase readability and improve the function
signature for API users.
2017-01-23 15:01:20 +09:00
Adrien Crivelli
f0445366d2
Fix date related unit tests for 2017
2017-01-04 17:37:23 +09:00
mattkibbler
62345ef4da
Allow start and end date of DATEDIF function to be the same
2016-12-04 19:04:10 +09:00
Matthias Van Woensel
39b8dbd0a1
Adding float cast to MOD function
...
If $a or $b are not strings, you can get an error that fmod needs param 1 ($a) to be of type double.
MS Excel does not fall over when you insert an empty string in MOD, so I'm guessing PHPExcel should do the same?
2016-12-04 16:12:51 +09:00
Adrien Crivelli
e6bbc4bd25
Convert all line ending to unix style
2016-11-27 15:45:15 +09:00
Green Wang
8c58385d6c
Fix cant get right format chinese date format error
...
modify preg expression in NumberFormat.php
[DBNum1][$-804]yyyy"年"m"月"d"日";@
[DBNum1][$-804]yyyy"年"m"月";@
[DBNum1][$-804]m"月"d"日";@
FIX #44
2016-11-27 13:39:45 +09:00
Alexander Kurilo
408da0c17a
Make HTML checks more strict
2016-11-16 22:21:30 +09:00
Alexander Kurilo
edb3974a0d
Move XEEE test data to add data for other readers
2016-11-16 22:21:30 +09:00
Adrien Crivelli
ae1b85f961
Fix code style
2016-10-02 15:21:52 +09:00
Adrien Crivelli
431a1799fb
Fix unit tests for YEARFRAC()
2016-10-02 15:17:52 +09:00
Adrien Crivelli
8c4c11346b
Fix unit tests for DATEDIF()
...
Leap years where not properly taken into consideration
2016-10-02 14:46:11 +09:00
Adrien Crivelli
60533a4f59
Fix unit tests for WEEKDAY()
...
In Excel the expected value was incorrect (but it would be different
for LibreOffice)
2016-10-02 09:28:00 +09:00
Adrien Crivelli
23fbc845dd
Fix unit tests for WEEKNUM()
2016-10-01 22:33:12 +09:00
Adrien Crivelli
67918419c4
Fix code style
2016-09-01 12:50:10 +09:00
MarkBaker
fb2edfdacf
Merge branch 'develop' of https://github.com/PHPOffice/PhpSpreadsheet into develop
...
# Conflicts:
# src/Autoloader.php
2016-08-31 21:58:08 +01:00
MarkBaker
fae27a6d63
As iconv is now enabled by default in PHP, make it a requirement, and modify strig functions to use it where appropriate
2016-08-31 21:52:42 +01:00
Adrien Crivelli
a85f1bdbed
Apply Scrutinizer patches for spacing
2016-08-25 18:46:02 +09:00
Adrien Crivelli
20ccfa0d59
Fix unit tests for MDETERM()
2016-08-25 14:23:26 +09:00
Adrien Crivelli
09d456e477
Introduce PHP-CS-Fixer for stricter code style rules
...
PHP-CS-Fixer allow to check different things than phpcs and it allows
code to be more consistent. Configuration can be changed in `.php_cs`
2016-08-17 00:33:57 +09:00
Adrien Crivelli
539a89a918
Rename namespace `PHPExcel` to `PhpSpreadsheet`
...
This also fix a few bugs that were introduced when migrating to
namespace. Some non-namespaces classes were leftover
FIX #15
2016-08-16 23:24:47 +09:00
Adrien Crivelli
e1f81f0fe0
Refactor tests data from custom format to PHP
...
FIX #14
2016-08-16 21:00:19 +09:00