File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -6624,6 +6624,7 @@ The following list is taken from the MS XLSX extensions documentation on future
6624
6624
_xlfn.ACOTH
6625
6625
_xlfn.AGGREGATE
6626
6626
_xlfn.ARABIC
6627
+ _xlfn.ARRAYTOTEXT
6627
6628
_xlfn.BASE
6628
6629
_xlfn.BETA.DIST
6629
6630
_xlfn.BETA.INV
@@ -6643,6 +6644,7 @@ The following list is taken from the MS XLSX extensions documentation on future
6643
6644
_xlfn.CHISQ.INV.RT
6644
6645
_xlfn.CHISQ.TEST
6645
6646
_xlfn.COMBINA
6647
+ _xlfn.CONCAT
6646
6648
_xlfn.CONFIDENCE.NORM
6647
6649
_xlfn.CONFIDENCE.T
6648
6650
_xlfn.COT
@@ -6678,6 +6680,8 @@ The following list is taken from the MS XLSX extensions documentation on future
6678
6680
_xlfn.GAUSS
6679
6681
_xlfn.HYPGEOM.DIST
6680
6682
_xlfn.IFNA
6683
+ _xlfn.IFS
6684
+ _xlfn.IMAGE
6681
6685
_xlfn.IMCOSH
6682
6686
_xlfn.IMCOT
6683
6687
_xlfn.IMCSC
@@ -6688,9 +6692,13 @@ The following list is taken from the MS XLSX extensions documentation on future
6688
6692
_xlfn.IMTAN
6689
6693
_xlfn.ISFORMULA
6690
6694
ISO.CEILING
6695
+ _xlfn.ISOMITTED
6691
6696
_xlfn.ISOWEEKNUM
6697
+ _xlfn.LET
6692
6698
_xlfn.LOGNORM.DIST
6693
6699
_xlfn.LOGNORM.INV
6700
+ _xlfn.MAXIFS
6701
+ _xlfn.MINIFS
6694
6702
_xlfn.MODE.MULT
6695
6703
_xlfn.MODE.SNGL
6696
6704
_xlfn.MUNIT
@@ -6728,13 +6736,18 @@ The following list is taken from the MS XLSX extensions documentation on future
6728
6736
_xlfn.T.INV
6729
6737
_xlfn.T.INV.2T
6730
6738
_xlfn.T.TEST
6739
+ _xlfn.TEXTAFTER
6740
+ _xlfn.TEXTBEFORE
6741
+ _xlfn.TEXTJOIN
6731
6742
_xlfn.UNICHAR
6732
6743
_xlfn.UNICODE
6744
+ _xlfn.VALUETOTEXT
6733
6745
_xlfn.VAR.P
6734
6746
_xlfn.VAR.S
6735
6747
_xlfn.WEBSERVICE
6736
6748
_xlfn.WEIBULL.DIST
6737
6749
WORKDAY.INTL
6750
+ _xlfn.XMATCH
6738
6751
_xlfn.XOR
6739
6752
_xlfn.Z.TEST
6740
6753
Original file line number Diff line number Diff line change @@ -2935,6 +2935,7 @@ sub _prepare_formula {
2935
2935
$formula =~ s /\b (HYPGEOM.DIST\( )/ _xlfn.$1 / g ;
2936
2936
$formula =~ s /\b (IFNA\( )/ _xlfn.$1 / g ;
2937
2937
$formula =~ s /\b (IFS\( )/ _xlfn.$1 / g ;
2938
+ $formula =~ s /\b (IMAGE\( )/ _xlfn.$1 / g ;
2938
2939
$formula =~ s /\b (IMCOSH\( )/ _xlfn.$1 / g ;
2939
2940
$formula =~ s /\b (IMCOT\( )/ _xlfn.$1 / g ;
2940
2941
$formula =~ s /\b (IMCSCH\( )/ _xlfn.$1 / g ;
@@ -3081,8 +3082,8 @@ sub write_formula {
3081
3082
# Check that row and col are valid and store max and min values
3082
3083
return -2 if $self -> _check_dimensions( $row , $col );
3083
3084
3084
- # Remove the = sign if it exists .
3085
- $formula =~ s / ^= // ;
3085
+ # Expand out the formula .
3086
+ $formula = $self -> _prepare_formula( $formula ) ;
3086
3087
3087
3088
# Write previous row if in in-line string optimization mode.
3088
3089
if ( $self -> {_optimization } == 1 && $row > $self -> {_previous_row } ) {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use strict;
9
9
use warnings;
10
10
use Excel::Writer::XLSX::Worksheet;
11
11
12
- use Test::More tests => 179 ;
12
+ use Test::More tests => 180 ;
13
13
14
14
15
15
# ##############################################################################
@@ -98,6 +98,7 @@ my @testcases = (
98
98
[' F.INV()' , ' _xlfn.F.INV()' ],
99
99
[' GAMMA()' , ' _xlfn.GAMMA()' ],
100
100
[' GAUSS()' , ' _xlfn.GAUSS()' ],
101
+ [' IMAGE()' , ' _xlfn.IMAGE()' ],
101
102
[' IMCOT()' , ' _xlfn.IMCOT()' ],
102
103
[' IMCSC()' , ' _xlfn.IMCSC()' ],
103
104
[' IMSEC()' , ' _xlfn.IMSEC()' ],
You can’t perform that action at this time.
0 commit comments