I have just come across something that I have never seen before in an Excel spreadsheet.

When I selected a cell I expected to see the cell reference (e.g. B30) in the box in the top left hand corner of the spreadsheet.
However, I now can see a ‘variable’ name (for example height). (This variable name is used in a formula in another cell in the spreadsheet - this is not important to me but is an example of how it is used in Excel).

I need to read the value of the variable. I can do this by using the cell reference which is still available. However, this means that the each data item has to be in a fixed position on the spreadsheet.
How can I use Perl to access this data using the variable name rather than the cell reference?
I guess I will need to know
1. How to open the spreadsheet;
2. How to search for the data associated with variable name.

Also it would be good to know how to write data to a cell and give it a variable name.

As this is something I only have seen recently, I wondered if whatever the method is, applies to only certain version of Excel.

In reply to Reading Variables in Excel Spreadsheet by merrymonk

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.