ExcelPackage (через nuget) для чтения файлов Excel 2007/2010/2013/2016 (формат Office Open XML, xlsx)
ExcelPackage.LicenseContext = LicenseContext.NonCommercial;
FileInfo info = new FileInfo("input.xlsx");
using (ExcelPackage xlPackage = new ExcelPackage(info))
{
// get the first worksheet in the workbook
ExcelWorksheet worksheet = xlPackage.Workbook.Worksheets[0];
// output the data in column 2
for (int iCol = 2; iCol < 4; iCol++)
{
for (int iRow = 1; true; iRow++)
{
if (string.IsNullOrWhiteSpace(worksheet.GetValue(iRow, iCol) as string))
break;
Console.WriteLine("Cell({0},{1}).Value={2}", iRow, iCol,
worksheet.GetValue(iRow, iCol));
}
}
}