Skip to content
Cambridge AS & A Level9626

Using a spreadsheet

Information Technology 9626 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Using a spreadsheet notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Using a spreadsheet notes as text: skim, search, and jump between subtopics.

~12 min read

1. Extracting data by searching

Extracting data means searching for the rows that meet a set criteria. A criterion can test text, a number, or a date and time.

To compare, use `>`, `<`, `=`, `>=` and `<=`. For text, use contains, starts with or ends with.

To combine criteria, use the Boolean operators `AND`, `OR` and `NOT`.

Examiner insight

“Many successfully performed a wildcard search on ‘i7’ processors and ‘DDR4’ memory, although fewer included the processor speed of ‘>=3.7’.” “To identify if products were currently in stock the price field had to be checked to see if it contained a numeric value.”

Worked example 14 marks

A library keeps a spreadsheet of loans with the columns Title, Genre and Days. The librarian wants only the loans where the genre is Science and the number of days is more than 14. Give the two criteria and the Boolean operator that joins them. State why a Science loan of 10 days is left out.

  1. 1

    Genre = "Science" [1]

  2. 2

    Days > 14 [1]

  3. 3

    The criteria are joined with `AND`. [1]

  4. 4

    10 is not more than 14, so the second criterion fails and `AND` needs both. [1]

2. Sorting data

A spreadsheet can sort data into a rank order: ascending (lowest first, or A to Z) or descending (highest first, or Z to A).

Sorting can use a single column or multiple columns. With several columns, sort by the first column, then by the next column within it.

Examiner insight

“While some responses identified that the data had initially been sorted using the Car make column and then the Car model column, very few identified that the final step was using sort ascending on the Car value column.” “Many candidates did well on this question, but a significant number gave repeating answers, such as that they would calculate the changes and identify a percentage change, or a raw number change.”

Worked example 14 marks

Test scores can be used to track a student’s progress over time. Describe two ways this can be done using a spreadsheet.

  1. 1

    Way 1: sort scores into date order [1]

  2. 2

    so progress over time can be seen [1]

  3. 3

    Way 2: create a graph/chart from the data [1]

  4. 4

    to visualise the student’s progression over time [1]

3. Pivot tables and pivot charts

Pivot tables analyse large quantities of data in a visual form. You choose which field gives the row labels and which field is summarised.

A pivot chart displays a pivot table as a chart, so values can be compared.

Choose row labels the user can read, and choose the right summary: SUM adds the values, COUNT only counts the rows.

Examiner insight

“A significant number of these set the row labels as the destination code rather than the destination name (which would be much more meaningful to the user of the data).” “A significant number of candidates used COUNT rather than SUM to calculate the values for the pivot table.”

Worked example 13 marks

A shop records its sales in the table. A pivot table has Region as the row labels and the Sum of Sales as its values. Give the value the pivot table gives for each region.

RegionItemSales ($)
NorthPens40
NorthBooks25
SouthPens30
SouthBooks50
NorthPens10
  1. 1

    Rows are grouped by Region and the Sales values are added. [1]

  2. 2

    North = 40 + 25 + 10 = 75 [1]

  3. 3

    South = 30 + 50 = 80 [1]

4. Subtotals and groups

Subtotals give a total for each category in the data. Use the `SUBTOTAL` function, which is correct for the data given and still works if the data changes.

The syllabus pairs subtotals with groups, which collect related rows so the data can be summarised by category.

Examiner insight

“Many ignored the clue in the question to display subtotals.” “Many worked for the given data but would not work if data was changed.”

Worked example 13 marks

The table lists pay by branch. A subtotal using SUM is inserted at each change in Branch, and a grand total is added. State the two subtotals and the grand total.

BranchPay ($)
Hull15
Hull25
Leeds20
Leeds30
Leeds10
  1. 1

    Hull subtotal = 15 + 25 = 40 [1]

  2. 2

    Leeds subtotal = 20 + 30 + 10 = 60 [1]

  3. 3

    Grand total = 40 + 60 = 100 [1]

5. Importing data and file formats

Data is imported from a different source, such as another spreadsheet or a database. Two common formats are csv and txt.

A generic file format can be opened by different software. A file in the wrong format will not open in the receiving software.

A csv file is a text file. Save finished work as a spreadsheet, so that formulae and formatting are kept.

Examiner insight

“Many responses included examples of generic file formats, usually .txt and .csv although these examples were seldom expanded upon.” “The term ‘generic file format’ was often not well explained.”

Worked example 16 marks

Eric has made a spreadsheet that he has shared with a number of friends. Some of his friends cannot open the spreadsheet. Identify three possible reasons the spreadsheet will not open once received. For each reason, suggest a way Eric could have prevented the problem.

  1. 1

    Reason 1: saved in a different/wrong file format [1]

  2. 2

    Way 1: use a generic file format [1]

  3. 3

    Reason 2: the file is password protected and Eric did not share the password [1]

  4. 4

    Way 2: Eric needs to share the password [1]

  5. 5

    Reason 3: wrong access rights/permissions assigned to the file [1]

  6. 6

    Way 3: grant access rights/permissions [1]

6. Exporting data, graphs and charts

Data, graphs and charts can be exported, for example as a csv file, a txt file or a pdf.

A graph or chart presents values so they can be compared. When a pivot table and chart go into a pdf report, check that nothing is cut off and that the report has what the reader needs.

Examiner insight

“The completed crosstab was frequently exported into portable document format, but data was often truncated.” “Gridlines were rarely seen, even in the submissions from stronger candidates.”

Worked example 13 marks

A pivot table and a chart are exported as a pdf report for a manager. State three checks to make on the report.

  1. 1

    No data is truncated. [1]

  2. 2

    All gridlines are present in the pivot table. [1]

  3. 3

    It has an appropriate title and brief information about what the report contains. [1]

Recap

  • Search criteria test text, numbers, and dates and times, joined by AND, OR and NOT.
  • Text searches use contains, starts with and ends with. Numbers and dates use >, <, =, >= and <=.
  • Sort ascending or descending, on one column or on several columns.
  • Pivot tables summarise data by row labels. Choose SUM, not COUNT, for totals.
  • Subtotals and groups summarise data by category. Use SUBTOTAL so the result still works if data changes.
  • Import from another source. Use a generic file format (csv, txt) to share.
  • Save work as a spreadsheet. A csv file keeps no formulae or formatting.
  • Exported pdf reports need a title, gridlines and no truncated data.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. Name one generic file format that can move data between different spreadsheet software.1 mark
    Answer
    1. csv (or txt).

    Trap: A file type owned by one program is not generic.

  2. A column holds customer names, including Smithson and Ms Smith. Explain the difference between the criteria `starts with "Smith"` and `contains "Smith"`.2 marks
    Answer
    1. `starts with` finds only names that begin with Smith, such as Smithson [1].
    2. `contains` also finds Ms Smith, where Smith is inside the text [1].

    Trap: Treating contains and starts with as the same search.

  3. A column holds the ages of club members. Write the criteria that extract members aged 18 to 65 inclusive.3 marks
    Answer
    1. Age >= 18 [1]
    2. Age <= 65 [1]
    3. The criteria are joined with `AND` [1].

    Trap: `>` 18 and `<` 65 leave out members aged exactly 18 and 65.

  4. The table lists four test results. Sort by Class ascending, then by Score descending within each class. Write the rows in their final order. | Class | Score | | --- | --- | | 9B | 62 | | 9A | 71 | | 9B | 80 | | 9A | 55 |3 marks
    Answer
    1. Class ascending puts both 9A rows first [1].
    2. Within 9A, Score descending gives 71 then 55 [1].
    3. Within 9B, Score descending gives 80 then 62 [1].

    Trap: Sorting Score on its own across all rows ignores Class.

  5. The table lists daily takings for two shops. A pivot table has Shop as the row labels and Takings as the values. Give the value for each shop when the values are summed, and the value for each shop when they are counted. | Day | Shop | Takings ($) | | --- | --- | --- | | Mon | A | 120 | | Mon | B | 90 | | Tue | A | 100 | | Tue | B | 130 | | Wed | A | 80 | | Wed | B | 60 |3 marks
    Answer
    1. Sum for A = 120 + 100 + 80 = 300 [1].
    2. Sum for B = 90 + 130 + 60 = 280 [1].
    3. Count is 3 for each shop [1].

    Trap: COUNT gives the number of rows, not the money.

  6. A student builds a spreadsheet using formulae and cell formatting, then saves it only as a .csv file. Explain the problem this causes.3 marks
    Answer
    1. A csv file is a text file [1].
    2. Formulae and formatting are not retained [1].
    3. The work should be saved as a spreadsheet [1].

    Trap: Thinking that a csv file keeps everything, because it still opens in spreadsheet software.

  7. The table lists exam entry fees. A subtotal using SUM is inserted at each change in Subject, followed by a grand total. Give both subtotals and the grand total. | Subject | Fee ($) | | --- | --- | | Maths | 12 | | Maths | 12 | | Art | 9 | | Art | 9 | | Art | 9 |4 marks
    Answer
    1. Maths subtotal = 12 + 12 = 24 [1].
    2. Art subtotal = 9 + 9 + 9 = 27 [1].
    3. Grand total = 24 + 27 = 51 [2].

    Trap: Adding the subtotals to the fees as well counts every fee twice and gives 102.

  8. The table lists five books. (a) Which books meet `Type = "Fiction" AND NOT (Pages > 300)`? (b) Which books meet `Type = "Non-fiction" OR Pages < 260`? | Title | Type | Pages | | --- | --- | --- | | A | Fiction | 250 | | B | Fiction | 320 | | C | Non-fiction | 150 | | D | Fiction | 300 | | E | Non-fiction | 400 |5 marks
    Answer
    1. (a)
    2. A is fiction with 250 pages, so it is kept [1].
    3. D is fiction with 300 pages, which is not more than 300, so it is kept [1]. B has 320 pages and is left out [1].
    4. (b)
    5. C and E are non-fiction, and A has fewer than 260 pages, so the books are A, C and E [2].

    Trap: Treating 300 as more than 300 leaves out book D.

  9. The table gives the dates on which members joined a club, written day/month/year. Extract the members who joined on or after 01/03/2025 and before 01/07/2025. Then sort them by date joined, latest first. Write the criteria and the final order of names. | Member | Joined | | --- | --- | | Ana | 14/02/2025 | | Ben | 03/03/2025 | | Cal | 29/06/2025 | | Dev | 01/07/2025 | | Eli | 01/03/2025 |5 marks
    Answer
    1. Joined >= 01/03/2025 [1] `AND` Joined < 01/07/2025 [1].
    2. This keeps Ben, Cal and Eli. Ana is too early and Dev joined on 01/07/2025, which is not before it [1].
    3. Sort descending on Joined [1].
    4. Order: Cal (29/06), Ben (03/03), Eli (01/03) [1].

    Trap: `<=` 01/07/2025 lets Dev in, and ascending order puts the earliest date first.

  10. An analyst imports a txt file of daily sales into spreadsheet software. She summarises the sales by region with a pivot table and a chart, then exports them as a pdf report for a manager. Describe what she should do at each stage.6 marks
    Answer
    1. Import the data from the file into the spreadsheet [1].
    2. Use the region names, not the region codes, as row labels, so the user can read them [1].
    3. Use SUM, not COUNT, for the sales values [1].
    4. Create a chart from the pivot table to visualise the data [1].
    5. Before sending the pdf, check that no data is truncated and all gridlines are present [1].
    6. Give the report an appropriate title and brief information about what it contains [1].

    Trap: Region codes as row labels, COUNT for the values, and a pdf with truncated data.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
Saved the work as a .csv file.Saved as a spreadsheet, so formulae and formatting are kept.
‘Use filters on the spreadsheet.’Filtering based on set criteria, naming the criteria.
A pivot table with row labels of codes and COUNT of the values.A pivot table with readable names as row labels and the SUM of the values.
‘Use a .csv file.’A generic file format, such as csv or txt, that other software can open.

Frequently asked questions

How do I extract only the rows that meet two conditions?
Extracting data means searching for the rows that meet a set criteria. To combine criteria, use the Boolean operators AND, OR and NOT. For example, combine Genre = Science with Days > 14 using AND, so both conditions must be met. Use >, <, =, >= and <= to compare numbers and dates.
What is the difference between starts with and contains in a text search?
Starts with finds only the names that begin with the characters given, such as Smithson. Contains also finds Ms Smith, because Smith is in the text. For text, use contains, starts with or ends with.
How do I sort a spreadsheet by more than one column?
Sorting can use a single column or multiple columns. With several columns, sort by the first column, then by the next column within it. A spreadsheet can sort data into ascending order, lowest first or A to Z, or descending order, highest first or Z to A.
Why should a pivot table use SUM rather than COUNT?
SUM adds the values, while COUNT only counts the rows. Choose row labels the user can read, and choose SUM for totals. A pivot table with row labels of codes and COUNT of the values does not give a useful result.
Why should I save my work as a spreadsheet, not as a csv file?
A csv file is a text file and keeps no formulae or formatting. Save finished work as a spreadsheet so that formulae and formatting are kept. A generic file format, such as csv or txt, is used to share data with other software.
What should I check before I export a pivot table and chart as a pdf report?
Check that no data is truncated and that all gridlines are present. Give the report an appropriate title and brief information about what it contains. Examiners reported that the completed crosstab was often exported as a pdf, but the data was often truncated.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters