Excel.Labs
3.0.4
dotnet add package Excel.Labs --version 3.0.4
NuGet\Install-Package Excel.Labs -Version 3.0.4
<PackageReference Include="Excel.Labs" Version="3.0.4" />
<PackageVersion Include="Excel.Labs" Version="3.0.4" />
<PackageReference Include="Excel.Labs" />
paket add Excel.Labs --version 3.0.4
#r "nuget: Excel.Labs, 3.0.4"
#:package Excel.Labs@3.0.4
#addin nuget:?package=Excel.Labs&version=3.0.4
#tool nuget:?package=Excel.Labs&version=3.0.4
<p align="center"> <img src="https://user-images.githubusercontent.com/602600/144003492-52eb4611-acaf-4f42-94bf-236b252264c8.png" style="max-width:100%;" height="140" /> </p>
| Source | Badges |
|---|---|
Sponsorship |
|
Workflows |
|
Stats |
|
License |
|
Github Activity |
|
Languages |
|
Issue Tracking |
Give a Star 🌟
If you want to support ExcelLabs then you may give a star or be one of the sponsors.
Welcome to Excel Labs
ExcelLabs is an Excel Helper library written in C#.
Features
This tool provides a C# based solution to create Excel files without complex queries. This package supports Android, iOS, Linux, macOS and Windows.
Installation
NuGet Package Manager
PM> Install-Package Excel.Labs
.NET CLI
> dotnet add package Excel.Labs
Release Notes - v3.0.4 - June 2026
- .NET 10 support
- DocumentFormat.OpenXml 3.5.1
- Fixed issue where temp files were shareable and not deleted on close
- SaveFileWithCleanXmlText, CleanTextForXml and ColumnIndexToColumnLetter functions added
Definition
Model
public class Cellx
{
public int RowIndex { get; set; }
public string ColumnName { get; set; }
public string Value { get; set; }
}
Usage
1. Create a Cell List
2. Add Some Data
3. Call SaveFile Function
Optionals with June 2024 v3.0.3 Update
4. Call XML-safe SaveFileWithCleanXmlText Function
5. Call CleanTextForXml to clean not-allowed XML characters
6. Call ColumnIndexToColumnLetter to Convert integer to Excel Column Letter like 1 to A
string title = "Excel Labs NuGet";
string sheetName = "Simple and Fast";
string path = AppDomain.CurrentDomain.BaseDirectory;
// 1. create a cell list
List<Cellx> cells = new List<Cellx>();
// 2. values as an array
List<string> languages = new List<string>() {
"Java", // A
"C#", // B
"Javascript", // C
"Swift", // D
"Php", // E
"Python", // F
"Go", // G
"Swift", // H
"", // I
"", // J
"", // K
"Objective-C", // L
"C++", // M
"F#", // N
"2024 June" // O
};
foreach (string lang in languages)
{
// no column name for ordered columns
cells.Add(new Cellx(1, lang));
}
// 3. single value with column name
cells.Add(new Cellx(2, "Fortran", "A"));
cells.Add(new Cellx(2, "Cobol", "D"));
cells.Add(new Cellx(2, "Pascal", "I"));
// 4. single value without column name
cells.Add(new Cellx(3, "Visual Studio"));
cells.Add(new Cellx(3, "Webstorm"));
cells.Add(new Cellx(3, "Xcode"));
cells.Add(new Cellx(3, "Notepad"));
// call save function
ExcelLabs.SaveFile(title, path, sheetName, cells);
// call safe save function
ExcelLabs.SaveFileWithCleanXmlText(title, path, sheetName, cells);
// clean not-allowed XML characters
string safeToWriteText = ExcelLabs.CleanTextForXml(title + " safe");
Console.WriteLine("Safe text: " + safeToWriteText);
// convert integer to Excel Column Letter like 1 to A
string excelColumnLetter1 = ExcelLabs.ColumnIndexToColumnLetter(1);
Console.WriteLine("1 to column letter: " + excelColumnLetter1); // A
// convert integer to Excel Column Letter like 1 to G
string excelColumnLetter7 = ExcelLabs.ColumnIndexToColumnLetter(7);
Console.WriteLine("7 to column letter: " + excelColumnLetter7); // G
Screenshot

Support or Contact
Please visit https://github.com/doxa-labs/ExcelLabs or http://doxalabs.co.uk
License
Excel Labs is released under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- DocumentFormat.OpenXml (>= 3.5.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
.NET 10 & .NET Framework Demo