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
6 examples in Conditional formatting

Data bars on a score column

EnableConditionalFormatting

Draws an in-cell bar proportional to each value, so the column reads as a bar chart without a helper column or a chart part.

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

var stylingOptions =
    new ExcelStylingOptions
    {
        EnableConditionalFormatting = true
    };

using (var writer = new ExcelStyledWriter("data-bar-performance-column.xlsx", null, stylingOptions))
{
    using (var sheet = writer.CreateWorksheet("Performance"))
    {
        sheet.WriteRow("Team", "Score");
        sheet.WriteRow("North", 92);
        sheet.WriteRow("South", 76);
        sheet.WriteRow("West", 64);
        sheet.WriteRow("East", 88);

        sheet.AddConditionalFormat(
            "B2:B5",
            ExcelConditionalFormat.DataBar(
                ExcelColor.FromRgb(68, 114, 196),
                showValue: true));
    }

    writer.Close();
}

Style your own workbooks

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