Module 8 · Text
Read the appointment code

Every Monday, Dana gets a file called appointments_FINAL_final_v7.xlsx. Each appointment has one code, for example NOR-0830-A. That means: North branch, 8:30, chair A. Dana needs the parts in their own columns.
Steps
Take the first characters with LEFT
LEFT gives back the first characters of a text. You tell it how many.
How to do it
- Select the cell for the result.
- Type =LEFT(
- Click the cell with the text. Type a comma.
- Type the number of characters and a closing bracket.
- Press Enter.
=LEFT(B5,3)Task: Get the branch for the second code. Put it in cell C6.
Take the last characters with RIGHT
RIGHT gives back the last characters of a text.
How to do it
- Click cell E5.
- Type =RIGHT(B5,
- Type 1 and a closing bracket.
- Press Enter.
=RIGHT(B5,1)Task: Get the chair for the second code. Put it in cell E6.
Take characters from the middle with MID
MID gives back characters from the middle of a text. You tell it where to start and how many characters to take.
How to do it
- Click cell D5.
- Type =MID(
- Type the text, the start position and the number of characters. Count every character, also hyphens and spaces.
- Press Enter.
- LEFT, RIGHT and MID give back text. 0830 is text, not a number.
=MID(B5,5,4)Task: Get the time for all codes. Fill in D6:D12.