Skip to main content

Spreadsheet Functions

  • 2 minutes to read

The DevExpress Spreadsheet Document API supports over 400 Excel compatible functions designed to address a broad range of usage scenarios. You can use basic mathematical functions to aggregate data within a spreadsheet or create complex formulas with statistical, engineering, and financial functions for advanced data analysis.

Below is the list of supported functions (grouped by category):

Use Functions in Formulas

A function call in a formula consists of the function name and arguments in parentheses. Arguments can be numbers, text, logical values, cell references, names, or other functions (nested functions). Function names are case-insensitive.

The following code snippet assigns values to cells A1:A4, adds formulas with functions and nested functions to cells B1:B3, and displays formula results in the console:

using System;
using DevExpress.Spreadsheet;

using var workbook = new Workbook();
var worksheet = workbook.Worksheets[0];
worksheet.Cells["A1"].Value = 12.456;
worksheet.Cells["A2"].Value = 7.3;
worksheet.Cells["A3"].Value = 25.1;
worksheet.Cells["A4"].Value = 3.9;

worksheet.Cells["B1"].Formula = "=AVERAGE(A1:A4)";
worksheet.Cells["B2"].Formula = "=ROUND(SUM(A1:A4),1)";
worksheet.Cells["B3"].Formula = "=IF(MAX(A1:A4)>20,\"Over limit\",\"Normal\")";

workbook.Calculate();

Console.WriteLine(worksheet.Cells["B1"].Value);
Console.WriteLine(worksheet.Cells["B2"].Value);
Console.WriteLine(worksheet.Cells["B3"].Value);
See Also