I'm trying to parse an excel spreadsheet, which in the past has been a breeze with the C# NPOI port. However, this time I'm finding that column "0" is changing from one row to the next.
I am trying to access the Cells property of an HSSFRow. It seems that cell 0 starts with the first cell that has data, rather than the first actual cell. At first I thought it was just the first cell that wasn't hidden... then I thought well maybe it's just the first cell that's after the freeze pane. Of course both those possibilities raise their own issues, but now it seems I'm finding that cell 0 is just the first one with data.
I'm trying to parse a spreadsheet that was definitely not designed with the intention of being parsed (the company who produced the spreadsheet is happy for us to use it this way, they just don't have the resources to provide a better source for our purposes at the moment).
So the data columns are staggered such that, instead of repeating a value in a column for every row, you just assume a value is repeated for every (blank cell in a) row until a new value is provided (hopefully that makes sense?).
The NPOI implementation seems to ignore/truncate empty cells though and act as though a value in any cell can be cell 0 so long as there was no data in any cell before it. This is super frustrating. How can I access data from a specific column that is ACTUALLY that column in the real spreadsheet?