How to get Excel Cell text in OpenXML SDK 2.5?
Getting cell text in OpenXML SDK 2.5 is quite tricky because the cell text can be either stored in the cell itself, or in a shared string table. In the latter case, the cell value is just an index to the shared string table. Also, some files have data stored in CellValue, other files have data in the InnerText fields. To address all these variations, I wrote the tiny function to get the cell text in any case: