for my $col ( $col_min .. $col_max ) { my $cell = $worksheet->get_cell( $row, $col ); ... }