reading Excel Open XML is ignoring blank cells
I am using the accepted solution here to convert an excel sheet into a datatable. This works fine if I have "perfect" data but if I have a blank cell in the middle of my data it seems to put the wrong data in each column. I think this is because in the below code: row.Descendants<Cell>().Count() is number of populated cells (not all columns) AND: GetCellValue(spreadSheetDocument, row.Descendants<Cell>().ElementAt(i)); seems to find the next populated cell (not necessarily what is in that index) so if the first column is empty and i call ElementAt(0), it returns the value in the second column.