Cellwright.Formulas 0.1.2

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

Cellwright

A modern .NET 10 Excel library, layered like System.Text.Json: primitives → constant-memory streaming → mutable DOM → source-generated typed mapping. Data-oriented cell storage — column slices in 512-row pages, not an object per cell. Async-first I/O, zero reflection, Native AOT and trimming safe. Apache-2.0 licensed.

using Cellwright;

// Read
Workbook book = await Workbook.LoadAsync("report.xlsx");
Worksheet sheet = book.Sheets[0];
CellValue total = sheet["B10"];

// Edit
sheet["C2"] = 1234.5;
sheet.Cell("C2").SetStyle(CellStyle.Default.Bold().NumberFormat("#,##0.00"));
sheet.Cell("C3").SetFormula("SUM(C1:C2)");

// Write
await book.SaveAsync("report.xlsx");

What the core package covers

  • Constant-memory streaming: forward-only XlsxWriter (UTF-8 straight to the wire) and XlsxReader (IAsyncEnumerable<RowData>) for files of any size.
  • A full worksheet model: values, styles, formulas (round-tripped as text), merged cells, freeze panes, hidden rows and columns, grouping, auto-filter, hyperlinks, notes and threaded comments, Excel tables, data validation, conditional formatting, page setup, protection, document properties, rich text runs, embedded charts (read and create), pictures.
  • Lossless editing of foreign files: pivot tables, themes, macros and anything else the model does not represent travels through byte for byte; renaming a sheet retargets formulas, defined names and chart references.
  • Styles per ISO/IEC 29500 §18.8: immutable records with free interning, fluent builders, pattern and gradient fills, theme colors, cell protection.
  • Recovery-oriented loading: recoverable problems become coded WorkbookWarnings instead of exceptions, and hostile input (zip bombs, wrong formats) is named rather than crashed on.
  • Markdown export: book.ToMarkdown() renders sheets as GitHub Flavored Markdown tables.

The Cellwright family

Package Adds
Cellwright The core: primitives, streaming, DOM (this package)
Cellwright.Formulas Calculation engine: 447 functions, incremental recalc, dynamic array spill
Cellwright.Mapping Typed row mapping via a Roslyn source generator
Cellwright.Xls Legacy .xls read/write, .xlsb read, encryption, VBA extraction
Cellwright.Pdf Prints workbooks to PDF the way Excel prints them

Documentation

Guides, per-feature docs and the full list of deliberate limitations live in the repository: https://github.com/WrightDocumentSuite/cellwright

Every deviation from the spec is documented and reported through diagnostics — nothing is silently dropped or approximated without saying so.

Product Compatible and additional computed target framework versions.
.NET 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 (1)

Showing the top 1 NuGet packages that depend on Cellwright.Formulas:

Package Downloads
Cellwright.Xls

Binary Excel format support for Cellwright: reads .xls (Excel 97-2003 and older) and .xlsb (BIFF12) workbooks into the same Workbook model, decrypts password-protected files of any format, decodes formulas, extracts VBA macro source, and writes BIFF8 back. Span-based, allocation-light, Native AOT ready.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.3 122 8/10/2026
0.1.2 124 8/1/2026