SharpCell 0.8.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package SharpCell --version 0.8.2
                    
NuGet\Install-Package SharpCell -Version 0.8.2
                    
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" Version="0.8.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharpCell" Version="0.8.2" />
                    
Directory.Packages.props
<PackageReference Include="SharpCell" />
                    
Project file
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 --version 0.8.2
                    
#r "nuget: SharpCell, 0.8.2"
                    
#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@0.8.2
                    
#: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&version=0.8.2
                    
Install as a Cake Addin
#tool nuget:?package=SharpCell&version=0.8.2
                    
Install as a Cake Tool

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.

Product 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.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on SharpCell:

Package Downloads
SharpCell.Xlsx

Reads .xlsx files into SharpCell workbooks (values, formulas, saved results, names, tables) and saves recalculated values back into them.

SharpCell.Grid

Excel-like spreadsheet grid for SharpCell workbooks, independent of any UI framework: row and column geometry, hit testing, visible cells and painting through a small canvas interface.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.11.0 154 10/15/2026
0.10.0 143 10/11/2026
0.9.0 113 10/11/2026
0.8.2 195 10/10/2026
0.8.1 112 10/10/2026
0.8.0 113 10/10/2026
0.7.0 102 10/10/2026
0.6.0 212 10/10/2026
0.5.0 109 10/10/2026
0.4.1 106 10/10/2026
0.4.0 104 10/10/2026
0.3.0 100 10/10/2026
0.2.1 104 10/9/2026
0.2.0 96 10/9/2026
0.1.0 103 10/9/2026