Module 8 · Text
Where is the space

The practice software has an update. Now the export puts the first name and the last name in one cell again. The update notes call it an improvement. Dana needs the two names back in two columns. The space between them shows where to cut.
Steps
Find the position of a character
FIND gives back the position of a text inside another text. The first character has position 1.
How to do it
- Select the cell for the result.
- Type =FIND( and the text to find in quotes. Type a comma.
- Type the cell to look in and a closing bracket.
- Press Enter.
- SEARCH works like FIND, but it does not care about capitals: =SEARCH("h",B6) finds the H in Hansen.
=FIND(" ",B5)Task: Find the space in all names. Fill in C6:C12.
Cut before the space with LEFT
LEFT takes characters from the start. Take the position of the space minus 1, and you get the first word.
How to do it
- Click cell D5.
- Type =LEFT(B5,
- Type the position of the space minus 1 and a closing bracket.
- Press Enter.
=LEFT(B5,C5-1)Task: Get the second first name. Put it in cell D6.
Cut after the space with MID
MID starts one character after the space. LEN gives the length of the text, so MID takes all characters to the end.
How to do it
- Click cell E5.
- Type =MID( with the text and the position of the space plus 1.
- Type LEN of the text as the number of characters, and a closing bracket.
- Press Enter.
=MID(B5,C5+1,LEN(B5))Task: Get the second last name. Put it in cell E6.