Numbers Exercises

Text Functions in Numbers: LEFT, MID, CONCATENATE

Last updated:

Short answer: LEFT and MID take parts of a text, CONCATENATE joins texts, UPPER and LOWER change letter case, SUBSTITUTE replaces text and LEN counts characters. Text you type yourself goes between quotation marks.

The examples use this table.

Table 1
ABC
1ProductPriceQty
2Apple410
3Pear65
4Kiwi122
5Grape83

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