Creating Conditional Tests

A conditional test formula compares two numbers, functions, formulas, labels, or logical values. You can use conditional tests to flag values that fall outside a given threshold, for example. You can use simple mathematical and logical operators to construct logical formulas, or you can use an assortment of built-in functions. For information about using conditional test functions, see Understanding Logical Functions on page 550.


You might also be able to satisfy some of your conditional curiosities by using the conditional formatting feature in Excel. For details, see Formatting Conditionally on page 309.

Each of the following formulas performs a rudimentary conditional test:

=5–3<5*2 =AVERAGE(B1:B6)=SUM(6,7,8) ...

Get Microsoft® Excel® 2010 Inside Out now with O’Reilly online learning.

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