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

Styled inventory table

EnableTables

The same table shape with a different built-in style name, showing that the style is a string swap rather than a rebuild of the table definition.

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

var stylingOptions =
    new ExcelStylingOptions
    {
        EnableTables = true
    };

using (var writer = new ExcelStyledWriter("styled-inventory-table.xlsx", null, stylingOptions))
{
    using (var sheet = writer.CreateWorksheet("Inventory"))
    {
        sheet.WriteRow("SKU", "Item", "Stock");
        sheet.WriteRow("FE-001", "Formula license", 42);
        sheet.WriteRow("FE-002", "Support pack", 18);
        sheet.WriteRow("FE-003", "Dashboard pack", 7);

        sheet.AddTable(
            ExcelTable.Create(
                "InventoryTable",
                "A1:C4",
                new[]
                {
                    ExcelTableColumn.Create("SKU"),
                    ExcelTableColumn.Create("Item"),
                    ExcelTableColumn.Create("Stock")
                },
                ExcelTableStyle.Create("TableStyleMedium9")));
    }

    writer.Close();
}

Style your own workbooks

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