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

Multiple tables on one sheet

EnableTables

Two independent tables stacked on one worksheet, separated by skipped rows. Each carries its own name, range, and style, and Excel treats them as separate objects.

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

var stylingOptions =
    new ExcelStylingOptions
    {
        EnableTables = true
    };

using (var writer = new ExcelStyledWriter("multiple-tables-workbook.xlsx", null, stylingOptions))
{
    using (var sheet = writer.CreateWorksheet("Workbook Tables"))
    {
        sheet.WriteRow("Region", "Revenue");
        sheet.WriteRow("North", 125000m);
        sheet.WriteRow("South", 98000m);

        sheet.AddTable(
            ExcelTable.Create(
                "RevenueTable",
                "A1:B3",
                new[]
                {
                    ExcelTableColumn.Create("Region"),
                    ExcelTableColumn.Create("Revenue")
                },
                ExcelTableStyle.Create("TableStyleMedium2")));

        sheet.SkipRows(2);

        sheet.WriteRow("Service", "Tickets");
        sheet.WriteRow("Import", 18);
        sheet.WriteRow("Export", 11);

        sheet.AddTable(
            ExcelTable.Create(
                "TicketTable",
                "A6:B8",
                new[]
                {
                    ExcelTableColumn.Create("Service"),
                    ExcelTableColumn.Create("Tickets")
                },
                ExcelTableStyle.Create("TableStyleMedium6")));
    }

    writer.Close();
}

Style your own workbooks

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