> I'm experiencing the VLOOKUP and #VALUE bug
>...
> I'm writing to inquire if they any better solutions to use
> to address this, as of 2.14.
Hi,
Currently, the best way to address this is issue is with the workaround
that you refer to and which I'll repeat here so that there is a record
of it.
#!/usr/bin/perl -w
use strict;
use Spreadsheet::WriteExcel;
my $workbook = Spreadsheet::WriteExcel->new('vlookup.xls');
my $worksheet = $workbook->add_worksheet();
$worksheet->write('A1', 'Data' );
$worksheet->write('A2', ['North', 1]);
$worksheet->write('A3', ['South', 2]);
$worksheet->write('A5', 'Lookup' );
$worksheet->write('A6', 'South' );
# Workaround for bad parsing of VLOOKUP.
my $formula = q{=VLOOKUP(A6,A2:B3,2,FALSE)};
my $vlookup = $worksheet->store_formula($formula);
@$vlookup = map {s/_ref2d/_ref2dV/;$_} @$vlookup;
$worksheet->repeat_formula('B6', $vlookup );
__END__
I need to address this issue at the parser level as soon as I get some
time.
John.
--