Module 8 · Text · One column becomes three

Dana Novak manages the office at Copperleaf Dental

The practice moves to a new booking system. The old system exports each visit in one cell: patient, treatment and room, with commas between them. The new system needs three columns. Dana does not want to type 32 cells.

Loading the spreadsheet…

Module 8 · Text

One column becomes three

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

The practice moves to a new booking system. The old system exports each visit in one cell: patient, treatment and room, with commas between them. The new system needs three columns. Dana does not want to type 32 cells.

Steps

  1. Split text at a comma

    Text to Columns splits each cell of a column at a delimiter, such as a comma. Each part goes into its own column.

    How to do it

    1. Select the cells in one column.
    2. On the Data tab, in the Data Tools group, click Text to Columns.
    3. Click Next.
    4. Select the check box of the delimiter.
    5. Click Finish.
    6. Text to Columns writes to the right of the column. Make sure that the columns to the right are empty.
    7. If the delimiter is not in the list, select Other and type it in the box.

    Kowalski,Hygiene,Room 2 → Kowalski | Hygiene | Room 2

    Task: Split the slots in F5:F12 at each hyphen into Day, Time and Room. Use Other and type a hyphen.

  2. Keep the original column

    Text to Columns writes over the original cells. In step 3, Destination tells Excel where the new columns start.

    How to do it

    1. Select J5 to J12.
    2. On the Data tab, click Text to Columns.
    3. Click Next.
    4. Select Other.
    5. Type the delimiter in the box next to Other.
    6. In Destination, type the first cell of the new columns.
    7. Click Finish.
    8. In step 3, you can also click a column in the preview and select Do not import column (skip).

    J5 Delta Care/Gold → K5 Delta Care, L5 Gold

    Task: Split the referrals in N5:N12 at the slash into Doctor and Lab. Keep column N as it is.

  3. Keep the zeros

    Text to Columns changes 00412 to the number 412. In step 3, the column data format Text keeps the zeros.

    How to do it

    1. Select the cells in one column.
    2. On the Data tab, click Text to Columns.
    3. Click Next.
    4. Select the Comma check box.
    5. Click the column in the preview, then select Text.
    6. Click Finish.
    7. With the format General, Excel changes 00412 to the number 412. The zeros are lost.
    8. Each column can have its own format. Click a column in the preview, then select its format.

    00412,Kowalski → 00412 | Kowalski

    Task: Split the member numbers in J15:J22 at the slash. Keep the zeros of the member numbers.