Skip to Content
iWork '09: The Missing Manual
book

iWork '09: The Missing Manual

by Josh Clark
April 2009
Intermediate to advanced
888 pages
40h
English
O'Reilly Media, Inc.
Content preview from iWork '09: The Missing Manual

What IF: Adding Logic to Formulas

All the functions you’ve seen so far have performed straight-up calculations. They’ve taken a set of values, worked a predefined transformation on them, and returned the value, no questions asked. For the functions in the Function Browser’s “Logical and Information” category, however, asking questions is the whole point. These discriminating functions sit your data down for an interview, ask probing questions, and then decide what to do based on what they discover:

  • "Is your grade higher than 93 percent? Yes? Congratulations, you get an A.”

  • "Have you paid your January bill? No? The amount goes into accounts receivable.”

  • "Has this check cleared? Yes? Add it to the reconciled balance in the check register.”

This category of functions imposes true-or-false conditions on your data: If yes, do this; if no, do that. It’s like the game Twenty Questions: The “questions” these functions ask can be complex, but the answers are always simple: yes or no. It sounds basic, but the result can be quite powerful, even letting you sift through mountains of data to pluck out summaries of what’s found within. Before tackling the mountains, though, you’ll start with a molehill, learning how to set a single cell’s value based on one or more conditions.

Setting Conditions with the IF Function

The IF function is Numbers’ general-purpose decision-maker. It checks to see if some condition is true and, based on the outcome, it does either one thing or the other. You make this kind ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Office 2013 All-In-One Absolute Beginner’s Guide

Office 2013 All-In-One Absolute Beginner’s Guide

Patrice-Anne Rutledge
The Hidden Cost of AI-Assisted Creativity

The Hidden Cost of AI-Assisted Creativity

Léonard Boussioux, Anil Doshi, Oliver Hauser, Kartik Hosanagar
How to Develop a Great Digital Strategy

How to Develop a Great Digital Strategy

Jeanne W. Ross, Cynthia M. Beath, Ina M. Sebastian

Publisher Resources

ISBN: 9780596802073Errata Page