SharpCell.Xlsx
0.11.0
dotnet add package SharpCell.Xlsx --version 0.11.0
NuGet\Install-Package SharpCell.Xlsx -Version 0.11.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SharpCell.Xlsx" Version="0.11.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharpCell.Xlsx" Version="0.11.0" />
<PackageReference Include="SharpCell.Xlsx" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SharpCell.Xlsx --version 0.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SharpCell.Xlsx, 0.11.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SharpCell.Xlsx@0.11.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SharpCell.Xlsx&version=0.11.0
#tool nuget:?package=SharpCell.Xlsx&version=0.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SharpCell
A free (MIT) Excel formula engine for .NET 8 and later: it reads .xlsx files, recalculates them and evaluates formulas, including dynamic arrays and LET/LAMBDA. Results are checked against workbooks calculated by Microsoft Excel.
| Package | What it does |
|---|---|
SharpCell |
The engine: parser, values, recalculation and functions. No dependencies. |
SharpCell.Xlsx |
Reads .xlsx files into a SharpCell workbook. Brings SharpCell with it. |
Read and recalculate a workbook
using SharpCell;
using SharpCell.Xlsx;
// Read the workbook: sheets, values, formulas and any results Excel saved with them.
Workbook workbook = XlsxReader.Load(path);
Worksheet budget = workbook["Budget"];
// Calculate every formula now instead of relying on saved results.
workbook.Recalculate();
Build a workbook in code
var workbook = new Workbook();
Worksheet sheet = workbook.AddSheet("Sheet1");
sheet["A1"].Value = 2;
sheet["A2"].Formula = "=A1*3";
workbook.Recalculate();
CellValue result = sheet["A2"].Value; // 6
Evaluate a formula without a cell
CellValue sum = workbook.Evaluate("=SUM(1, 2, 3)"); // 6, no sheet needed
Values update only on Recalculate. Excel errors such as #DIV/0! are values, not exceptions. A Workbook is not thread-safe; use one per thread.
Links
- Documentation
- What matches Excel, function by function
- What SharpCell does not do
- For AI coding agents
- Source and issues
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.11.0 | 98 | 10/15/2026 |
| 0.10.0 | 97 | 10/11/2026 |
| 0.9.0 | 89 | 10/11/2026 |
| 0.8.2 | 111 | 10/10/2026 |
| 0.8.1 | 98 | 10/10/2026 |
| 0.8.0 | 96 | 10/10/2026 |
| 0.7.0 | 85 | 10/10/2026 |
| 0.6.0 | 121 | 10/10/2026 |
| 0.5.0 | 87 | 10/10/2026 |
| 0.4.1 | 87 | 10/10/2026 |
| 0.4.0 | 84 | 10/10/2026 |
| 0.3.0 | 82 | 10/10/2026 |
| 0.2.1 | 84 | 10/9/2026 |
| 0.2.0 | 84 | 10/9/2026 |
| 0.1.0 | 84 | 10/9/2026 |