asidnayak:

Yes.

Slightly more specifically, the very first example in Spreadsheet::ParseExcel is capable of reading merged cells:

$ cat merge_925829.pl #!/usr/bin/perl use strict; use warnings; use Spreadsheet::ParseExcel; my $p = Spreadsheet::ParseExcel->new(); my $WB = $p->parse('merge_925829.xls'); if (!defined $WB) { die $p->error(), ".\n"; } for my $WS ($WB->worksheets()) { my ( $row_min, $row_max ) = $WS->row_range(); my ( $col_min, $col_max ) = $WS->col_range(); for my $row ( $row_min .. $row_max ) { for my $col ( $col_min .. $col_max ) { my $cell = $WS->get_cell( $row, $col ); next unless $cell; print "Row, Col = ($row, $col)\n"; print "Value = ", $cell->value(), "\n"; print "Unformatted = ", $cell->unformatted(), "\n"; print "\n"; } } } $ ./merge_925829.pl Row, Col = (0, 0) Value = a1/b1 Unformatted = a1/b1 Row, Col = (0, 1) Value = Unformatted = Row, Col = (0, 2) Value = c1 Unformatted = c1 Row, Col = (1, 0) Value = a2 Unformatted = a2 Row, Col = (1, 1) Value = b2/c2 Unformatted = b2/c2 Row, Col = (1, 2) Value = Unformatted = Row, Col = (2, 0) Value = a3/b3/c3 Unformatted = a3/b3/c3 Row, Col = (2, 1) Value = Unformatted = Row, Col = (2, 2) Value = Unformatted = Row, Col = (3, 0) Value = a4 Unformatted = a4 Row, Col = (3, 1) Value = b4 Unformatted = b4 Row, Col = (3, 2) Value = c4 Unformatted = c4

Perhaps you ought to provide a little more detail with your question so you can get a more useful response...

...roboticus

When your only tool is a hammer, all problems look like your thumb.


In reply to Re: How to read merged cells from excel by roboticus
in thread How to read merged cells from excel by asidnayak

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.