Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: How Operators are Evaluated.

# How Operators are Evaluated

Written by Allen Wyatt (last updated October 12, 2019)
This tip applies to Excel 97, 2000, 2002, and 2003

The operators in a formula are generally evaluated from left to right. Thus, in the following formula the addition is performed first and then the subtraction:

```= C7 + A2 – B3
```

However, this is not always the case. For instance, Excel will perform any exponentiation first, then multiplication or division, then addition or subtraction, then text concatenation, and finally any comparisons. Thus, in the following formula, the multiplication is performed before the addition, even though the multiplication occurs to the right of the addition:

```= C12 + D4 * A1
```

The order in which operators are evaluated is referred to as precedence. Operators with higher precedence are evaluated before those with lower precedence. The following is the order of evaluation for operators in Excel.

Operator Meaning – Negative indicator (such as –123) % Percent ^ Exponent * and / Multiplication and division + and – Addition and subtraction & Text concatenation = < > <= >= <> Comparison

As you enter formulas, you will want to remember these rules so you can get the desired results. If you cannot remember them or you want to change the order in which operations are performed, you can use parentheses. For instance, if you wanted the addition to occur before the multiplication in the previous formula, you would enter it like this:

```= (C12 + D4) * A1
```

As you work with formulas in Excel, you will find yourself using parentheses quite often. The reason for this is simple—they remove any confusion about how a formula should be processed by Excel.

As a real-world example, suppose you were developing a formula that applied tax to the sum of two different values. For instance, if you want to take the value in cell F2, add \$5.00 to it, and then adjust for tax (assuming 5.25% in your state), the formula would be written as follows:

```= (F2 + 5) * 105.25%
```

For the sake of simplicity, if the value in F2 is \$95.00, then the result of this formula would be \$105.25. Without the parentheses, however, the result would be \$100.26 because Excel would do the multiplication (5 * 105.25%) first and then add the result to the value in F2.

Remember, parentheses remove any confusion that might arise concerning what a formula means.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2040) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: How Operators are Evaluated.

##### Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

##### MORE FROM ALLEN

Special Characters in Pattern Matching

The most powerful search engine in Word uses pattern matching, but the way you specify special characters in a ...

Discover More

Finding Where the Current Document is Saved

It is possible to have multiple documents on your system, each with the same filename. If you work on those documents at ...

Discover More

Stopping Validated Data from being Overwritten

Data Validation is a great tool to make sure that data entered in a cell meets whatever criteria you decide. Its ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

Summing Based on Formatting in Adjacent Cells

It is easy to use Excel functions to sum values based on criteria you establish, unless those criteria involve the ...

Discover More

Counting Unique Values

Need to know a count of unique values in a range of cells? There are a couple of ways you can tackle the problem.

Discover More

Referencing the Last Six Items in a Formula

If you have a list of data in a column, you may want to determine an average of whatever the last few items are in the ...

Discover More
##### Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. Youâ€™ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 4?

There are currently no comments for this tip. (Be the first to leave your commentâ€”just use the simple form above!)

##### This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.