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

Traditional note on a header

EnableComments

Attaches a classic Excel note to a header cell, giving a column an explanation on hover without spending a row on it.

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

var stylingOptions =
    new ExcelStylingOptions
    {
        EnableComments = true
    };

using (var writer = new ExcelStyledWriter("traditional-note-on-header.xlsx", null, stylingOptions))
{
    using (var sheet = writer.CreateWorksheet("Notes"))
    {
        sheet.WriteRow("Metric", "Value");
        sheet.WriteRow("Revenue", 125000m);
        sheet.WriteRow("Margin", 0.184);

        sheet.AddNote(
            "B1",
            ExcelNote.Create(
                "Values in this column are produced by the reporting export.",
                "John"));
    }

    writer.Close();
}

Style your own workbooks

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