syntax definition of structure-reference misses brackets

Regina Henschel 201 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]]

Office Open Specifications
Office Open Specifications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Open Specifications: Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.
137 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
2,119 questions
{count} votes

Accepted answer
  1. Mike Bowen 1,781 Reputation points Microsoft Employee
    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.