Text Functions in Numbers: LEFT, MID, CONCATENATE
The examples use this table.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
LEFT: the start of a text
LEFT returns the first characters of a text. The second number decides how many.
=LEFT(A3,2)Result: Pe
MID: a piece from the middle
MID takes characters from the middle. You give the start position (1 is the first character) and the number of characters.
=MID(A4,2,2)Result: iw
CONCATENATE: joining texts
A space is text too, so put it between quotation marks.
=CONCATENATE(A2," ",B2)Result: Apple 4
Upper case and replacing
UPPER converts text to capitals and LOWER to lower case. SUBSTITUTE replaces text with other text, everywhere it occurs.
=UPPER(A2)Result: APPLE
=SUBSTITUTE(A3,"e","a")Result: Paar
Counting characters with LEN
LEN counts the number of characters in a text, spaces included.
=LEN(A4)Result: 4
Frequently asked questions
How do I join text from two cells?
Use CONCATENATE, for example CONCATENATE(A2, " ", B2) for a space in between.
How do I take the first letters from a cell?
Use LEFT with the number of characters, for example LEFT(A2, 3).
How do I count the number of characters?
Use LEN, for example LEN(A2).
Functions in this article
Practise it yourself
Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.
Start practising