Transforming Text in Formulas

Numbers has a mind for math, sure, but it’s also got a talent for juggling words and rearranging letters. The program’s many text functions let you work with your cells’ text entries to clean up your data, combine prose into new constructions, or pluck a snippet of text from the middle of a longer passage.

The way you’ll most commonly work with your text values is to combine them into entirely new values. In the same way that you add numbers with the + operator, you combine text with the & operator, which glues two bits of text together. In Numbers, text snippets are called strings and combining them is called something only a geek could love: concatenation. It works just like addition, only with strings instead of numbers. This formula, for example, concatenates a first name and last name into a full name, putting a space in between for good measure:

="Walter" & " " & "Kovacs"

Get iWork '09: The Missing Manual now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.