in reply to Excel Formatting
For column J, just don't write to the column:my $trans_format = $workbook->add_format(); $trans_format->set_num_format('$0.00'); #... $worksheet->set_column('I:I', undef, $trans_format);
Update: replaced write() with write_row()my $row = 2; while (<FH>) { chomp; @keepers = split /,/, $_, 10; pop @keepers; # only get first 9 columns $worksheet->write_row($row, 0, \@keepers, $cell_format); $row++; } $worksheet->write_formula('I1', '=SUM (I3:I262)'); $worksheet->set_column('I:I', undef, $trans_format);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Excel Formatting
by PerlSufi (Friar) on Apr 22, 2013 at 19:42 UTC | |
by CountOrlok (Friar) on Apr 22, 2013 at 20:46 UTC | |
by PerlSufi (Friar) on Apr 22, 2013 at 20:54 UTC | |
by PerlSufi (Friar) on Apr 22, 2013 at 19:46 UTC |