View on GitHub

dotnet-eud

.NET Controls End-User Documentation

Using Functions in Formulas

The Spreadsheet provides the capability to use a set of predefined functions in formulas to perform simple or complex calculations.

To create a formula containing functions, follow the instructions below.

  1. Click the cell in which you want to insert the formula.
  2. Type the equal sign “=”. This is required to interpret the cell content as a formula. Skip this action if you insert the function in a cell which already contains a formula.
  3. Type the function’s name, or insert the required function from the Function Library.
  4. Enter the arguments between the function’s parentheses.
  5. Press ENTER. The result appears in the cell in which you inserted the formula.

Insert a Function

If you do not remember the name of the function you want to use, you can insert the desired function quickly using one of the following approaches.

[!NOTE] If you start the formula with a function, the Spreadsheet automatically adds the equal sign to your formula.

Nested functions

You can create a formula with a function that uses another function as one of the arguments. A function that is used as an argument is called a nested function. A formula can contain up to 64 levels of nesting.

Examples of formulas with nested functions are detailed in the table below.

Formula Description
=ROUND(SUM(A1:A5),2) Round the sum of the values contained in the cell range A1:A5 to two decimal places.
=SQRT(AVERAGE(A1:A5)) Returns the square root of the average value of the numbers in the cell range A1:A5.
=IF(A5<1000, POWER(A5,2)) Square the value in cell A5 if it is less than 1000.