spreadsheetlab / XLParser

A C# parser for Microsoft Excel formulas with a 99.9% compatibility rate
Other
407 stars 91 forks source link

Merge intersection of table references #160

Closed WillemJann closed 2 years ago

WillemJann commented 2 years ago

This PR improves the ParserReference of structured (table) references. Consider the following formula:

=SUM(Sales_2[Jan]:Sales_2[Feb])

Currently two parser references are generated. In fact, it can be seen as one table reference with two columns. Similar to cell ranges (e.g. A1:B10), would like to merge these two parser references into one parser reference. This PR provides the implementation and unit tests.

Some remarks: