Module 8 · Text · Read the appointment code

Dana Novak manages the office at Copperleaf Dental

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.

Loading the spreadsheet…

Module 8 · Text

Read the appointment code

Dana Novak, manages the office at Copperleaf Dental
Dana Novak manages the office at Copperleaf Dental

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

  1. Take the first characters with LEFT

    LEFT gives back the first characters of a text. You tell it how many.

    How to do it

    1. Select the cell for the result.
    2. Type =LEFT(
    3. Click the cell with the text. Type a comma.
    4. Type the number of characters and a closing bracket.
    5. Press Enter.

    =LEFT(B5,3)

    Task: Get the branch for the second code. Put it in cell C6.

  2. Take the last characters with RIGHT

    RIGHT gives back the last characters of a text.

    How to do it

    1. Click cell E5.
    2. Type =RIGHT(B5,
    3. Type 1 and a closing bracket.
    4. Press Enter.

    =RIGHT(B5,1)

    Task: Get the chair for the second code. Put it in cell E6.

  3. 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

    1. Click cell D5.
    2. Type =MID(
    3. Type the text, the start position and the number of characters. Count every character, also hyphens and spaces.
    4. Press Enter.
    5. 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.