Formulas and Functions
Table Of Contents
- Formulas and Functions
- Contents
- Preface: Welcome to iWork Formulas & Functions
- Chapter 1: Using Formulas in Tables
- The Elements of Formulas
- Performing Instant Calculations in Numbers
- Using Predefined Quick Formulas
- Creating Your Own Formulas
- Removing Formulas
- Referring to Cells in Formulas
- Using Operators in Formulas
- The String Operator and the Wildcards
- Copying or Moving Formulas and Their Computed Values
- Viewing All Formulas in a Spreadsheet
- Finding and Replacing Formula Elements
- Chapter 2: Overview of the iWork Functions
- Chapter 3: Date and Time Functions
- Chapter 4: Duration Functions
- Chapter 5: Engineering Functions
- Chapter 6: Financial Functions
- Chapter 7: Logical and Information Functions
- Chapter 8: Numeric Functions
- Chapter 9: Reference Functions
- Chapter 10: Statistical Functions
- Listing of Statistical Functions
- AVEDEV
- AVERAGE
- AVERAGEA
- AVERAGEIF
- AVERAGEIFS
- BETADIST
- BETAINV
- BINOMDIST
- CHIDIST
- CHIINV
- CHITEST
- CONFIDENCE
- CORREL
- COUNT
- COUNTA
- COUNTBLANK
- COUNTIF
- COUNTIFS
- COVAR
- CRITBINOM
- DEVSQ
- EXPONDIST
- FDIST
- FINV
- FORECAST
- FREQUENCY
- GAMMADIST
- GAMMAINV
- GAMMALN
- GEOMEAN
- HARMEAN
- INTERCEPT
- LARGE
- LINEST
- Additional Statistics
- LOGINV
- LOGNORMDIST
- MAX
- MAXA
- MEDIAN
- MIN
- MINA
- MODE
- NEGBINOMDIST
- NORMDIST
- NORMINV
- NORMSDIST
- NORMSINV
- PERCENTILE
- PERCENTRANK
- PERMUT
- POISSON
- PROB
- QUARTILE
- RANK
- SLOPE
- SMALL
- STANDARDIZE
- STDEV
- STDEVA
- STDEVP
- STDEVPA
- TDIST
- TINV
- TTEST
- VAR
- VARA
- VARP
- VARPA
- ZTEST
- Chapter 11: Text Functions
- Chapter 12: Trigonometric Functions
- Chapter 13: Additional Examples and Topics
- Index
Chapter 13 Additional Examples and Topics 359
Expression 1
=AND(B2>60, B2<=75) tests for a low score. If the test score is in the range 61 to 75, AND will return
TRUE meaning the student should come in for a special study session. Otherwise it will return FALSE.
Expression 2
=OR(ISBLANK(B2), B2<0, B2>100) tests for invalid data. The rst OR expression “ISBLANK(B2)” will be
TRUE if there is no test score. The second expression will return TRUE if the test score is negative and
the third expression will return TRUE if the test score is over 100. The OR will return TRUE if any of the
conditions is TRUE, meaning the data is invalid in some way. The OR will return FALSE if none of the
conditions are TRUE and therefore the data is valid.
Expression 3
=B2<=60 tests for a failing grade. This expression will return TRUE if the test score is 60 or below, a
failing grade. Otherwise it returns FALSE.
Putting it together in an IF function
=IF(AND(B2>60, B2<=75), “Needs study session”, IF(OR(ISBLANK(B2), B2<0, B2>100), “Invalid data”,
IF(B2<=60, “Exam failed”, “”)))
If the test expression (same as Expression 1 above) in the rst IF evaluates to TRUE, the function will
return “Needs study session”; otherwise it will continue to the FALSE argument, the second IF.
If the test expression (same as Expression 2 above) of the second IF evaluates to TRUE, the function
will return “Invalid data”; otherwise it will continue to the FALSE argument, the third IF.
If the test expression (same as Expression 3 above) of the third IF evaluates to TRUE, the function will
return “Exam failed”; otherwise the expression will return an empty expression (“”).
The result might look like the following table.










