UNTESTED.my $header_Row = $wks->Range("A:A")->{'Value'}; my ($FirstNameColumn) = grep { $header_Row->[$_ - 1] =~ /firstname/ +i} 1..@header_Row; My $currrentRow="18"; Whatever row you are on now my $FirstName = $wks->Cells($currentRow,$FirstNameColumn)->{'Value'};
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
In reply to Re: reading data from Excel sheet using column/row names
by NetWallah
in thread reading data from Excel sheet using column/row names
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |