# Formulas

DsExcel provides some built-in functions and operators to generate formulas and calculate values in cells.

## Content

DsExcel .NET provides you with the ability to create and use formulas to carry out complex calculations on numerical data residing in cells or a range of cells. You can also use some built-in functions and operators to generate formulas and calculate values in cells. Formulas are written as algebraic expressions, statements, or equations that start with an "=" (equal to) sign. The computation of a formula always begins from left and extends towards the right as per the operator precedence. In case you want to modify the order of computation, you can enclose some specific portions within the formula in parentheses.
Shared below is the descending order of operations for DsExcel .NET formulas with the first one holding the maximum precedence and last one holding the minimum precedence.

1. Parentheses evaluation of expressions
2. Range evaluation
3. Evaluation of spaces within the expression.
4. Evaluation of commas within the expression
5. Evaluation of variables with negation sign (-)
6. Conversion of percentages(%)
7. Evaluation of exponents (with ^ sign)
8. Multiplication and Division operators (hold equal precedence).
9. Addition and Subtraction operators (hold equal precedence).
10. Evaluation of text operators
11. Evaluation of comparison operators (=,<>,<=,>=)

In DsExcel .NET, managing formulas involves the following tasks.

* [Formula Parser](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/formula-parser)
* [Formula Functions](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/formula_functions)
* [Asynchronous Functions](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/AsynchronousFunctions)
* [Set Formula to Range](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/SetFormulaToRange)
* [Set Table Formula](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/SetTableFormula)
* [Set Array Formula](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/SetArrayFormula)
* [Dynamic Array Formulas](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/dynamic-array-formula)
* [Precedents and Dependents](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/precedents_and_dependents)
* [Iterative Calculation](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/iterative-calculation)
* [Calculation Mode](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/CalculationMode)
* [Cross Workbook Formula](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/cross-workbook-formula)
* [Localized Formulas](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/localized-formulas)
* [Formula Evaluation](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/formula-evaluation)
* [LAMBDA Functions](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/lambda-functions)
* [Formulas with Picture in Cell](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/formulas-with-picture-in-cell)
* [What-If Analysis](/document-solutions/dot-net-excel-api/docs/online/Features/ManageFormulas/What-IfAnalysis)