rohit_raghu has asked for the wisdom of the Perl Monks concerning the following question:
$row stores the current row index.$i=1; for (@cols) { my $s=xl_rowcol_to_cell(1,$i); my $e=xl_rowcol_to_cell($row-1,$i); my $range="$s:$e"; print "$i:Range:$range\n"; $worksheet->write_formula($row,$i,'=MAX('.$range.')'); $worksheet->write_formula($row+1,$i,'=AVERAGE('.$range.')' +); $i++; }
Update: Its alright. It seems that the problem was that I was using Excel Viewer. The program worked fine when I reinstalled Excel.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: WriteExcel and formulas
by roboticus (Chancellor) on Jul 23, 2012 at 12:21 UTC | |
Re: WriteExcel and formulas
by jmcnamara (Monsignor) on Jul 23, 2012 at 13:25 UTC | |
by rohit_raghu (Acolyte) on Jul 26, 2012 at 04:44 UTC | |
by jmcnamara (Monsignor) on Jul 26, 2012 at 09:33 UTC | |
by rohit_raghu (Acolyte) on Jul 27, 2012 at 05:02 UTC |