using IronXL; using System; using System.Linq; // Supported for XLSX, XLS, XLSM, XLTX, CSV and TSV WorkBook workBook = WorkBook.Load("sample.xlsx"); // Select worksheet at index 0 WorkSheet workSheet = workBook.WorkSheets[0]; // Get any existing worksheet WorkSheet firstSheet = workBook.DefaultWorkSheet; // Select a cell and return the converted value int cellValue = workSheet["A2"].IntValue; // Read from ranges of cells elegantly. foreach (var cell in workSheet["A2:A10"]) { Console.WriteLine("Cell {0} has value '{1}'", cell.AddressString, cell.Text); } // Calculate aggregate values such as Min, Max and Sum decimal sum = workSheet["A2:A10"].Sum(); // Linq compatible decimal max = workSheet["A2:A10"].Max(c => c.DecimalValue);
Designed for C#, F#, & VB.NET running on .NET 9, 8, 7, 6, Core, Standard, or Framework
.NET Versions:
C#, VB.NET, F# Languages
.NET Core (9, 8, 7, 6, 5, and 3.1+)
.NET Standard (2.0+)
.NET Framework (4.6.2+)
OS & Processors:
Windows (x64, x86)
Mac (x64, ARM)
Linux (x64)
.NET Project Types:
Web (Blazor & WebForms)
Desktop (WPF & MAUI)
Console (App & Library)
App Environments:
Windows (10+, Server 2016+)
Linux (Ubuntu, Debian, CentOS, etc.)
Mac (macOS 10+)
Docker (Windows, Linux, Azure)
Azure (VPS, WebApp, Function)
AWS (EC2, Lambda)
IDEs:
Microsoft Visual Studio
Jetbrains ReSharper & Rider
Binary Certification
DigiCert Signed Binaries
A C# Excel Library that prioritizes accuracy, ease of use, and speed.
IronXL is the leading C# Excel library for generating and editing Excel documents in .NET. Its user friendly API allows developers to add Excel functionality to .NET projects in minutes.
The Excel API you need, without the Office Interop hassle.
A C# Excel Library that prioritizes accuracy, ease of use, and speed.
IronXL is the leading C# Excel library for generating and editing Excel documents in .NET. Its user friendly API allows developers to add Excel functionality to .NET projects in minutes.
The Excel API you need, without the Office Interop hassle.
IronXL Release Version 2025.6Features & UpgradesSee what's new