FormulaEngineer — A Highly Accurate Excel Formula Engine with support for 430+ Excel functions — explore the complete list NEW3.0.1

FormulaEngineer examples

Create, read, and style Excel workbooks in .NET.

Style workbooks as you write them — fonts, fills, borders, number formats, alignment, and layout — using ExcelStyledWriter. Every example below is a complete, runnable snippet.

Group
Example
10 examples in Tables and notes

Basic sales table

EnableTables

Turns a written range into a real Excel table — banded rows, filter buttons, and a structured name that formulas elsewhere can reference.

Write.cs
using FormulaEngineer.Api;
using FormulaEngineer.Api.Styling;

var stylingOptions =
    new ExcelStylingOptions
    {
        EnableTables = true
    };

using (var writer = new ExcelStyledWriter("basic-sales-table.xlsx", null, stylingOptions))
{
    using (var sheet = writer.CreateWorksheet("Sales"))
    {
        sheet.WriteRow("Product", "Quantity", "Revenue");
        sheet.WriteRow("Formula Engine", 5, 2495m);
        sheet.WriteRow("Streaming Writer", 3, 825m);
        sheet.WriteRow("Dashboard Pack", 2, 1500m);

        sheet.AddTable(
            ExcelTable.Create(
                "SalesTable",
                "A1:C4",
                new[]
                {
                    ExcelTableColumn.Create("Product"),
                    ExcelTableColumn.Create("Quantity"),
                    ExcelTableColumn.Create("Revenue")
                },
                ExcelTableStyle.Create("TableStyleMedium2")));
    }

    writer.Close();
}

Style your own workbooks

Styling is part of the same package — no separate install, no Excel, no COM automation.