- Fix ISFORMULA() function to work with a cell reference to another worksheet
 - Added calculation engine support for the new functions that were added in MS Excel 2013 and MS Excel 2016
   - Text Functions
     - CONCAT()     Synonym for CONCATENATE()
     - NUMBERVALUE()  Converts text to a number, in a locale-independent way
     - UNICHAR()    Synonym for CHAR() in PHPSpreadsheet, which has always used UTF-8 internally
     - UNIORD()     Synonym for ORD() in PHPSpreadsheet, which has always used UTF-8 internally
     - TEXTJOIN()   Joins together two or more text strings, separated by a delimiter
   - Logical Functions
     - XOR()        Returns a logical Exclusive Or of all arguments
   - Date/Time Functions
     - ISOWEEKNUM()  Returns the ISO 8601 week number of the year for a given date
   - Lookup and Reference Functions
     - FORMULATEXT()  Returns a formula as a string
   - Engineering Functions
     - ERF.PRECISE()   Returns the error function integrated between 0 and a supplied limit
     - ERFC.PRECISE()  Synonym for ERFC
   - Math and Trig Functions
     - SEC()          Returns the secant of an angle
     - SECH()         Returns the hyperbolic secant of an angle
     - CSC()          Returns the cosecant of an angle
     - CSCH()         Returns the hyperbolic cosecant of an angle
     - COT()          Returns the cotangent of an angle
     - COTH()         Returns the hyperbolic cotangent of an angle
     - ACOT()         Returns the cotangent of an angle
     - ACOTH()        Returns the hyperbolic cotangent of an angle
  - Financial Functions
    - PDURATION()    Calculates the number of periods required for an investment to reach a specified value
    - RRI()          Calculates the interest rate required for an investment to grow to a specified future value
		
	
			
		
			
				
	
	
		
			62 lines
		
	
	
		
			828 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			828 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
// Settlement, Maturity, Frequency, Basis, Result
 | 
						|
 | 
						|
return [
 | 
						|
    [
 | 
						|
        181,
 | 
						|
        '25-Jan-2007',
 | 
						|
        '15-Nov-2008',
 | 
						|
        2,
 | 
						|
        1,
 | 
						|
    ],
 | 
						|
    [
 | 
						|
        90,
 | 
						|
        '2011-01-01',
 | 
						|
        '2012-10-25',
 | 
						|
        4,
 | 
						|
    ],
 | 
						|
    [
 | 
						|
        182.5,
 | 
						|
        '25-Jan-2007',
 | 
						|
        '15-Nov-2008',
 | 
						|
        2,
 | 
						|
        3,
 | 
						|
    ],
 | 
						|
    [
 | 
						|
        365,
 | 
						|
        '25-Jan-2007',
 | 
						|
        '15-Nov-2008',
 | 
						|
        1,
 | 
						|
        1,
 | 
						|
    ],
 | 
						|
    [
 | 
						|
        365,
 | 
						|
        '25-Jan-2010',
 | 
						|
        '15-Nov-2011',
 | 
						|
        1,
 | 
						|
        1,
 | 
						|
    ],
 | 
						|
    [
 | 
						|
        '#VALUE!',
 | 
						|
        'Invalid Date',
 | 
						|
        '15-Nov-2008',
 | 
						|
        2,
 | 
						|
        1,
 | 
						|
    ],
 | 
						|
    [
 | 
						|
        '#VALUE!',
 | 
						|
        '25-Jan-2007',
 | 
						|
        'Invalid Date',
 | 
						|
        2,
 | 
						|
        1,
 | 
						|
    ],
 | 
						|
    [
 | 
						|
        '#NUM!',
 | 
						|
        '25-Jan-2007',
 | 
						|
        '15-Nov-2008',
 | 
						|
        3,
 | 
						|
        1,
 | 
						|
    ],
 | 
						|
];
 |