CHAPTER 13Using Formulas for Conditional Analysis

Excel provides several worksheet functions for performing conditional analysis. You'll use some of those functions in this chapter. Conditional analysis means performing different actions depending on whether a condition is met.

Understanding Conditional Analysis

A condition is a value or expression that returns TRUE or FALSE. Based on the value of the condition, a formula can branch into two separate calculations. That is, when the condition returns TRUE, one value or expression is evaluated while the other is ignored. A FALSE condition reverses the flow of the formula, and the first value or expression is ignored while the other is evaluated.

In this section, you'll explore some of the logical functions available in Excel.


This book's website,, includes a copy of the sample workbook for this chapter. The file is named Conditional Analysis.xlsx.

Checking if a simple condition is met

Figure 13.1 shows a list of states and six monthly gas prices. For each price, say you want to determine whether that state's price in that month is above or below the average of all the states for the same month. For higher than average prices, you will report “High” and for lower than average “Low.” A grid below the ...

Get Excel 2019 Bible now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.