That's because you're setting the data type of number to a cell that contains a string. You probably meant to set the cell format/style as number. For that you can use the number format id of 2 (Excel's default). See https://closedxml.codeplex.com/wikipage?title=NumberFormatId%20Lookup%20Table
↧