Confident CellsExcel practice Start free

TEXTSPLIT and LET: practice exercises

TEXTSPLIT across and down, two separators, LET. 5 exercises on real-looking data, each marked the moment you press Check. The first exercise is below to try now; the full lesson is part of Pro.

Your turn

The bonus is 5% of the year's total sales, but only if the total reaches the target in F1. Otherwise it's 0. In F2, use LET to name the total once, then use the name in an IF.

ABCDEF
1MonthSalesTarget£8,480.00
2April£1,100.00Bonus
3May£520.00
4June£860.00
5July£380.00
6August£1,040.00
7September£760.00
8October£720.00
9November£440.00
10December£1,040.00
11January£500.00
12February£200.00
13March£920.00

How it works

TEXTSPLIT(text, separator) splits text into separate cells wherever the separator appears, going across. Put the separator in the third place instead to split it down the sheet: TEXTSPLIT(A1,,"|").

LET gives a value a name, so you can work it out once and use it several times: =LET(net,B2-C2,IF(net>0,net*20%,0)).

=TEXTSPLIT(A1,", ") =TEXTSPLIT(A1,,", ") =TEXTSPLIT(B2,{"-","/"}) =LET(p,TEXTSPLIT(B3," "),INDEX(p,2)&", "&INDEX(p,1))

Splitting text into cells

TEXTSPLIT(text, separator) cuts text into pieces wherever the separator appears. Each piece goes in its own cell, and the answer spills.

  • TEXTSPLIT(B1,", "): pieces go across.
  • TEXTSPLIT(B1,,", "): leave the second place empty, and the pieces go down.
  • TEXTSPLIT(B2,{"-","/"}): split at either separator.

The pieces are text, even when they look like numbers. TEXTSPLIT is in Excel 365 and Excel 2024, but not Google Sheets, which has its own SPLIT.

Worked example: TEXTSPLIT

AB
1ListAnn, Ben, Cal
2CodeUK-2026/0412
3NameAmira Khan
4
5
  1. =TEXTSPLIT(B1,", ") in B5. Split at each comma and space: Ann, Ben and Cal go across B5 to D5. With just "," as the separator, the spaces would stay at the start of Ben and Cal.
  2. =TEXTSPLIT(B2,{"-","/"}) in B5. Two separators in curly brackets: UK, 2026 and 0412.

Naming a step with LET

AB
1ListAnn, Ben, Cal
2CodeUK-2026/0412
3NameAmira Khan
4
5
  1. =LET(p,TEXTSPLIT(B3," "),INDEX(p,2)&", "&INDEX(p,1)) in B5. LET names the two pieces of Amira Khan p. INDEX(p,2) is Khan and INDEX(p,1) is Amira, so the answer is Khan, Amira. Without LET you would need TEXTSPLIT twice.

What you'll practise

  1. B1 lists everyone at a meeting, separated by a comma and a space. In B3, split them into one name per cell, going across.
  2. B1 holds an order, with the items separated by semicolons. In B3, split it into one item per row, going down.
  3. The code in B1 has three parts: country, year and number, split by a - and a /. In B3, split it into its three parts. Put both separators in curly brackets: {"-","/"}.
  4. The bonus is 5% of the year's total sales, but only if the total reaches the target in F1. Otherwise it's 0. In F2, use LET to name the total once, then use the name in an IF.
  5. In B2, turn each name round so Amira Khan becomes Khan, Amira. Use LET to name the pieces from TEXTSPLIT, then INDEX to pick them. Your formula will be copied down to B9.

Guides with worked examples: TEXTSPLIT: splitting text into cells with a formula · LET: naming a step in a long formula