Import a text file as a linked copy
How can ten tab-separated employee records be imported without editing the source?
- TQ2-C03-L09
- About 2 min
- Khmer voice · English terms
- Textbook pp 91–93
Lesson 9 · 11 of 20 in TQ2 Chapter 3
Practice card
Your turn
A 10-row imported table’s text source gains 2 employees. How do you show all 12 in the existing table?
Decide your answer first, then check it.
Check yourself
3 exam-style questions
2 questions on this lesson and 1 review question from Lesson 7b. Choose an answer, then check it to see why it is right or wrong.
- Question 1 of 3This lessonTextbook pp 91–93
- Question 2 of 3This lessonTextbook pp 91–93
- Question 3 of 3Review · Lesson 7bTextbook p 89
Your answers stay on this device. A question you miss goes on your review list and comes back in a later quiz.
Notes
Read first: TQ2 study text, printed pages 91–93.
Book §3.4, pp 91–93. The Employee Sickness file of ten employees is the book's (p 93); the two extra employees are ours. Current Excel uses Data, From Text/CSV in place of the book's Text Import Wizard.
How this lesson uses the textbook: TQ2 Chapter 3 · English pp 91–93
Source: TQ2 Chapter 3 · English printed pp 91–93
These lessons add to your formal studies; they don't replace them. Keep going to class, reading your textbook, doing the practice exercises and taking notes.
Read the English transcript
How can ten tab-separated employee records be imported without editing the source?
Choose Data, From Text/CSV and load a copy with a connection to the source file.
A text file separates its fields with a delimiter, for example a tab or a comma; a CSV file uses commas. Open the file itself and you work in the original, with no copy and no link. An import leaves the source alone and links your table to it, so the table can be refreshed.
We use the book's Employee Sickness file: ten employees, with department, job code and days off. On the Data tab, choose From Text/CSV, pick the file and click Import. The preview shows Tab as the delimiter, with ten rows in six columns. Click Load. The ten employees arrive as a table on a new sheet, and the text file itself is unchanged. The days total forty-two point five, the same as the source.
Watch out for codes such as zero zero one seven: automatic type detection can remove the leading zeros. In Transform Data, replace or remove the earlier Changed Type step before setting the code column to Text from the original values, then verify zero zero one seven before loading.
Your turn. Change only the source: two more employees are added to the text file. What do you do so the table shows twelve rows?
Remember: import a copy with a connection, then refresh it when the source changes.
The video already has Khmer subtitles. The Khmer transcript follows after our Khmer review.