You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library currently doesn't support table referencing. E.g. a formula like =INDEX(MyTable[Column1], 2) isn't calculated correctly. It returns an invalid reference error. It is interesting though that the library already has a notion of tables.
The goal of this issue is to add support for table referencing.
Steps to reproduce the issue:
Create a table with f.AddTable("Sheet1", &Table{Range: "A2:C5", Name: "MyTable"}).
Add a cell formula f.SetCellFormula("Sheet1", "A1", "=INDEX(MyTable[Column1], 2)")
Set the value of cell A3 to be "Foo" with f.SetCellValue("Sheet1", "A3", "Foo")
Calculate the cell value f.CalcCellValue("Sheet1", "A1") and receive an error invalid reference.
Describe the results you received:
An error called invalid reference.
Describe the results you expected:
To receive "Foo" after calculating the value of "A1".
Output of go version:
go version go1.23.2 darwin/arm64
Excelize version or commit ID:
caf22e4974afa377baeac21803de3923fd78e627
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Apple M3 Pro, macOS 14.4 (23E214)
Received the result with an xlsx file generated by gsheet.
Notes
I think I already implemented the feature. There should be a reference PR with the proposed change.
The text was updated successfully, but these errors were encountered:
Description
The library currently doesn't support table referencing. E.g. a formula like
=INDEX(MyTable[Column1], 2)
isn't calculated correctly. It returns aninvalid reference
error. It is interesting though that the library already has a notion of tables.The goal of this issue is to add support for table referencing.
Steps to reproduce the issue:
f.AddTable("Sheet1", &Table{Range: "A2:C5", Name: "MyTable"})
.f.SetCellFormula("Sheet1", "A1", "=INDEX(MyTable[Column1], 2)")
A3
to be "Foo" withf.SetCellValue("Sheet1", "A3", "Foo")
f.CalcCellValue("Sheet1", "A1")
and receive an errorinvalid reference
.Describe the results you received:
An error called
invalid reference
.Describe the results you expected:
To receive "Foo" after calculating the value of "A1".
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Apple M3 Pro, macOS 14.4 (23E214)
Received the result with an xlsx file generated by gsheet.
Notes
I think I already implemented the feature. There should be a reference PR with the proposed change.
The text was updated successfully, but these errors were encountered: