nissl-lab / npoi

a .NET library that can read/write Office formats without Microsoft Office installed. No COM+, no interop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Array Formula not being interpreted correctly

agerber85 opened this issue · comments

NPOI Version

2.6.2 (from NuGet)

File Type

  • XLSX

Upload the Excel File

Please attach your original Excel File to help us reproduce the issue
I'm not starting from an Excel file, but rather creating a XSSFWorkbook from scratch in my vb.net script. I've uploaded a .zip of the directory in 'repos' for my project.

Reproduce Steps

NPOI tester.zip

Run my project in VS and observe the parse error for the formula '{INDEX(A5:A13,MATCH(MAX(ABS(C5:C13)),ABS(C5:C13),0))}'

Issue Description

The formula '{INDEX(A5:A13,MATCH(MAX(ABS(C5:C13)),ABS(C5:C13),0))}' is not being parsed correctly by the method ICell.SetCellFormula.