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

Using Cell Ranges in Functions

All of the function examples you’ve seen so far have used cell references with the same comma-separated format as any other argument. That works fine when you have just a small handful of arguments—to add the values of four cells, for example:

=SUM(B1, B2, B3, B4)

But that’s actually longer than just doing it directly with the plus sign:

=B1 + B2 + B3 + B4

And either method becomes hideously long when you decide to add a column of 10,000 values. In the time it would take to type or click all the cells, you may as well just add up the values yourself. Happily, Numbers provides a shorthand called a range reference that lets you point to any collection of neighboring cells—a range. Many functions accept range references as arguments, including SUM, which adds up all the cells described by the range. To provide a range reference, you give Numbers the cell reference for the top-left and bottom-right cells in the range, separated by a colon. (If it’s a single-column range, then your job is to name the top and bottom cells.) B1:B4, for example, describes adjacent cells in a column—a reference to cells B1 and B4 and the cells in between (B2 and B3). These two formulas return the same result:

=SUM(B1:B4)
=SUM(B1, B2, B3, B4)

Even though a range reference is just a single argument, in other words, it actually “unpacks” into several values. You can even string multiple ranges together by separating them with commas just as you would with any other argument. For example, ...

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