Module 8 · Text
One column becomes three

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
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
- Select the cells in one column.
- On the Data tab, in the Data Tools group, click Text to Columns.
- Click Next.
- Select the check box of the delimiter.
- Click Finish.
- Text to Columns writes to the right of the column. Make sure that the columns to the right are empty.
- If the delimiter is not in the list, select Other and type it in the box.
Kowalski,Hygiene,Room 2 → Kowalski | Hygiene | Room 2Task: Split the slots in F5:F12 at each hyphen into Day, Time and Room. Use Other and type a hyphen.
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
- Select J5 to J12.
- On the Data tab, click Text to Columns.
- Click Next.
- Select Other.
- Type the delimiter in the box next to Other.
- In Destination, type the first cell of the new columns.
- Click Finish.
- 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 GoldTask: Split the referrals in N5:N12 at the slash into Doctor and Lab. Keep column N as it is.
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
- Select the cells in one column.
- On the Data tab, click Text to Columns.
- Click Next.
- Select the Comma check box.
- Click the column in the preview, then select Text.
- Click Finish.
- With the format General, Excel changes 00412 to the number 412. The zeros are lost.
- Each column can have its own format. Click a column in the preview, then select its format.
00412,Kowalski → 00412 | KowalskiTask: Split the member numbers in J15:J22 at the slash. Keep the zeros of the member numbers.