Wishing all our customers a happy Halloween

Wishing all our customers a very happy Christmas

Wishing all our customers a happy New YearThe New Year in 10Happy New Year! Wishing all our customers a wonderful

Wishing all our customers a happy Easter

LEARN · SKILL 6 OF 11

Text and date functions

Data pasted from other systems is often messy. Text and date functions clean it with a formula instead of retyping it.

  1. LearnRead the guide and its worked examples.
  2. PractiseA drill on just this skill, easier tasks first. Stuck? “Show me how”.
  3. TestA timed mock in the style your employer named.
  4. ReviewYour report shows what cost marks and what to practise next.

The functions

TRIM =TRIM(text)
Removes spaces at the start and end, and squeezes double spaces to one.
LEFT / RIGHT =LEFT(text, n) · =RIGHT(text, n)
The first or last n characters.
MID =MID(text, start, n)
n characters starting at position start.
CONCAT and & =CONCAT(A2, " ", B2) · =A2&" "&B2
Joins pieces of text together.
UPPER / LOWER / PROPER =PROPER(text)
Changes the case. PROPER gives each word a capital letter.
TODAY, YEAR, MONTH, DAY =YEAR(date)
Today's date, or one part of a date.
NETWORKDAYS =NETWORKDAYS(start, end)
Working days (Monday to Friday) between two dates, counting both ends.

Worked examples

Example 1 Remove extra spaces from a name

B2
AB
1Name as pastedClean name
2 Sarah Jones Sarah Jones
B2 holds =TRIM(A2) and shows Sarah Jones (highlighted).

Piece by piece

TRIM(
Tidy the spaces in the text.
A2
The messy name. The spaces at each end go, and the three spaces in the middle become one.

Example 2 Pull the number out of a product code

B2
AB
1CodeNumber
2UK-4471-B4471
3FR-2308-A
B2 holds =MID(A2,4,4) and shows 4471 (highlighted).

Piece by piece

A2
The code UK-4471-B.
4
Start at the 4th character. U=1, K=2, -=3, 4=4.
4
Take 4 characters: 4471.
Note
The result is text, not a number. Wrap it in VALUE( ) if you need to do sums with it.

Example 3 Days from order to delivery

D2
ABCD
1OrderOrderedDeliveredDays
2Ord-11803/03/202610/03/20267
D2 holds =C2-B2 and shows 7 (highlighted).

Piece by piece

C2
The delivery date. A date is stored as a number of days, so you can subtract.
-
Minus.
B2
The order date. 10 March minus 3 March is 7 days.
Tip
If the answer looks like a date, change the cell's format to Number.

Common mistakes

Excel and Google Sheets

In Excel: Excel reads dates in your computer's regional format, so 03/03/2026 may be day-first or month-first. CONCAT needs Excel 2019 or later; CONCATENATE and & work everywhere.

In Google Sheets: Dates follow the spreadsheet's locale (File > Settings). The text functions match Excel's. Google Sheets adds REGEXEXTRACT for harder patterns.

Now practise it

Reading gets you started; doing it under a clock is what the test checks. Practise this skill on its own, easier tasks first, then take a mock.

Practise in the Excel style Practise in the Google Sheets style

Skill drills come with the 30-day and 90-day passes. No pass yet? Try the free five-task mini-mock, no account needed.