I am reading the cell values using this code;
var cell = row.Elements<Cell>().FirstOrDefault();
var stringId = Convert.ToInt32(cell.InnerText);
var cellValue = workbookPart.SharedStringTablePart.SharedStringTable
.Elements<SharedStringItem>().ElementAt(stringId).InnerText;
I am reading first cells of rows and get the value. My excel is like this.
A B
1 x name1
2 y name2
3 1 name3
So when the row is 3, the stringId value is set as 1 and the cellValue is set as "x", but it should be 1.