← Years 5–6 Data & Information

Importing data from a CSV file

A plain text file that stores table data with commas between the values. A spreadsheet can open it and show the data in rows and columns.

Understanding Importing data from a CSV file in Years 5–6 Data & Information

What it does: The .csv ending shows the file is a CSV. A spreadsheet can open it and show the data in rows and columns. CSV means comma separated values. The commas separate each value in a row of the table. True. A CSV file only holds text and commas. It has no colours, charts or fancy formatting. CSV files end with .csv. A file ending in .mp3 is a sound file. Once the data is in a spreadsheet, you can sort it, filter it, use formulas and make charts. Each comma marks where one cell ends and the next begins, so this single line becomes one row in the spreadsheet.

Common mistakes: A CSV file puts commas between values, not spaces. A spreadsheet would put all of this text in one cell. It should be Mia,10,dog. The values must be separated by a comma so the spreadsheet knows where the next column starts. It should be banana,3.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 11–20) and word search (Modules 1–20).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
What does CSV stand for?
Computer saved versionComma separated values
Matches
name age team Mia 11 Blue
↓
The values are separated by spaces, not commas. A spreadsheet would put each whole line in one cell instead of splitting it into columns.
Applying
Meanings
Term
CSV file
Meaning
A plain text file that stores table data with commas between the values. A spreadsheet can open it and show the data in rows and columns.
Practice
Name,Age,Pets
Testing
Gaps
A CSV file is stored as plain
Check Answer
Spots
1Name,Age,Pet
2Mia 10 dog

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Golden Eagle' badge — High Flyer, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. What does CSV stand for?
A. Computer saved version
B. Comma separated values ✓
CSV means comma separated values. The commas separate each value in a row of the table.
2. Which line is shown the way a CSV file stores a row of data?
A. Mia 11 Melbourne |
B. Mia,11,Melbourne ✓
A CSV file puts a comma between each value, so Mia,11,Melbourne is one row with three values.
3. A CSV file is a plain text file.
A. True ✓
B. False
True. A CSV file only holds text and commas. It has no colours, charts or fancy formatting.
4. You download a list of school sports results as a CSV file. Which program can open it and show the data in rows and columns?
A. A spreadsheet ✓
B. A music player
A spreadsheet can open a CSV file and put each value into its own cell in rows and columns.
5. When a spreadsheet opens a CSV file, what does each comma tell it to do?
A. Start a new column ✓
B. Start a new spreadsheet
Each comma marks where one value ends and the next one goes into the next column.

Match the Pairs

name,age,team → The first row of a CSV file with three headings separated by commas. A spreadsheet shows each heading in its own column.
Mia,11,Blue → One row of data in a CSV file. A spreadsheet puts Mia, 11 and Blue into three cells side by side.
A CSV file is saved with a file name ending that tells the computer it holds comma separated values → survey_results.csv
A CSV file stores a small table as plain text, with one line for each row and commas between the values → pet,count dog,8 cat,5
name age team Mia 11 Blue → The values are separated by spaces, not commas. A spreadsheet would put each whole line in one cell instead of splitting it into columns.
Open the CSV file in a word processor to see the data in rows and columns → A word processor shows only the plain text and commas. A spreadsheet is the tool that opens a CSV file and lays the data out in rows and columns.

Key Term

CSV file
A plain text file that stores table data with commas between the values. A spreadsheet can open it and show the data in rows and columns.

Fill in the Blanks

1. A CSV file is stored as plain text
Hint: Type the word for the simple kind of file that holds only characters, with no pictures or fancy formatting.
2. Open the CSV file in a spreadsheet
Hint: Type the kind of program that can open a CSV file and show its data in rows and columns.
3. CSV means Comma Separated Values
Hint: Type the word that describes how the values are divided from each other.
4. Each comma starts a new column
Hint: Type the part of a spreadsheet that a comma moves the next value into.
5. Downloaded file: data.csv
Hint: Type the file extension that shows a file holds comma separated values.

Spot the Error

Question 1
A Name,Age,Pet
B Mia 10 dog
C Leo,11,cat
Line B — A CSV file puts commas between values, not spaces. A spreadsheet would put all of this text in one cell. It should be Mia,10,dog.
Question 2
A Fruit,Price
B apple,2
C banana 3
Line C — The values must be separated by a comma so the spreadsheet knows where the next column starts. It should be banana,3.
Question 3
A Name,Score,Team
B Ava,9
C Sam,7,Blue
Line B — This row is missing the Team value. Every row needs the same number of values as the headings. It should be Ava,9,Red.
Question 4
A Day,Rain,,Temp
B Mon,0,22
C Tue,5,19
Line A — Two commas in a row make an empty extra column. The heading line should have just one comma between each heading. It should be Day,Rain,Temp.
Question 5
A Download the file data.docx
B Open a new spreadsheet
C Choose File, then Import
D Pick data.csv from Downloads
Line A — A CSV file ends in .csv. A .docx file is a word processing document, not comma separated table data. It should be data.csv.

Student with a class code? Join your class →