XL: Order of Operations in FormulasID: Q25189
|
When you combine several operators into a single formula, Microsoft Excel
performs the operations in the following order:
: Range
space Intersection
, Union
- Negation
% Percentage
^ Exponentiation
* or / Multiplication or Division
+ or - Addition or Subtraction
& Text Operator
= < > <= >= <> Comparison Operators
If you want to alter this order, use parentheses to group expressions in
your formula. Microsoft Excel first calculates the expression in
parentheses, then uses those results to calculate the formula.
For example, the following formula
=(5*4+2)
=5*(4+2)
For more information about operator precedence, click the Index tab in
Microsoft Excel 97 Help, type the following text
operators, evaluation order in formulas
operators, precedence
Operator
Additional query words: XL98 XL97 XL7 XL5 XL4 XL3
Keywords : xlformula
Version : WINDOWS:2.x,3.0,4.x,5.0,5.0c,7.0,7.0a,97; MACINTOSH:1.x,2.x,3.0,4.0,5.0,5.0a,98
Platform : MACINTOSH WINDOWS
Issue type : kbinfo
Last Reviewed: March 16, 1999