syntax definition of structure-reference misses brackets

Regina Henschel 286 Reputation points
2024-08-04T17:31:06.3533333+00:00

Assume you have an Excel Table named myData.

And this Excel Table has first row with labels Name, Gender, Class, Age and Time .

With the syntax rules for structure-reference starting on page 37 in [MS-XLSX] - v20240416, I get this construction:

Gender is a simple-column-name

Age is a simple-column-name

Gender is a column

Age is a column

Gender:Age is a column-range

Gender:Age is a inner-reference

[Gender:Age] is a intra-table-reference

myData[Gender:Age] is a structure-reference

But when you enter

=myData[Gender:Age]

in a cell, you get a syntax error.

In fact, needed is

=myData[[Gender]:[Age]]

Microsoft 365 and Office Open Specifications
Microsoft 365 and Office Install, redeem, activate For business Windows
{count} votes

Accepted answer
  1. Mike Bowen 2,051 Reputation points Microsoft Employee Moderator
    2024-08-07T16:21:49.1466667+00:00

    Hi Regina Henschel,

    I investigated and I can confirm your findings. =myData[Gender:Age] is not a valid structure-reference and we will update MS-XLSX 2.2.2 Formulas to have the correct ABNF grammar to reflect this in a future release.

    Thanks again for your efforts to find issues with our documentation, it is important for our documentation to be as accurate as possible, and we appreciate your support.

    Best regards,

    Michael Bowen

    Microsoft Open Specifications

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.