Skip to content
Cambridge AS & A Level9626

Testing a spreadsheet

Information Technology 9626 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Testing a spreadsheet notes as a printable PDF.

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

Read the notes

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

~11 min read

1. The test plan

A test plan is written before the spreadsheet is tested. It is a table, with one row for each test.

Each row names what is being tested and the type of test, then gives the test data and the expected result. The actual result is filled in after the test is run.

The plan covers the spreadsheet's functions, validation rules and conditional formatting.

Examiner insight

“Some marks were often attained for these elements, but few candidates then went on to show understanding of the tabular nature of test plans with the items (cells) to be tested and expected and actual results as column headings (often with remedial action taken which was not assessed on this paper).” “Results were frequently shown where candidates had produced a tabular plan, although it was acceptable to include screen shots for the actual results the expected results should not have included screen shots as the planning should take place before the testing is completed.”

Worked example 14 marks

A developer is writing a test plan for a spreadsheet. State what the test plan records for each test.

  1. 1

    The type of test and the cell or element being tested [1]

  2. 2

    The test data to be entered [1]

  3. 3

    The expected result, written before the test is run [1]

  4. 4

    The actual result, recorded after the test is run [1]

2. Testing functions and validation rules

To test a function, enter the test data and compare the result displayed with the expected result. A wrong inequality symbol fails only at a boundary, so test the boundary of every condition.

To test a validation rule, enter data it should accept and data it should reject. Check that each is accepted or rejected as planned.

Test data is used to find errors. It is not the same thing as testing.

Examiner insight

“The question required an explanation of the purpose of test data so strong answers were those that referred to locating or discovering errors in the logic, calculations or formulae in the spreadsheet, showing what the errors were, and confirming that any validation rules worked.”

Worked example 15 marks

A teacher stores grade boundaries in a spreadsheet and uses this formula in cell G3 to show the grade for the score in cell F3.

``` =IF(F3>C3,"Check Score",(IF(F3>B3,A3,(IF(F3>B4,A4,(IF(F3>B5,A5,A6))))))) ```

This formula has been tested and found not to work as intended. Explain why this formula does not work as intended.

CellGradeMinimum MarkMaximum Mark
row 3A4450
row 4B4043
row 5C3639
row 6U035
  1. 1

    The formula gives the wrong grade for a score at the lower boundary of a grade [1]

  2. 2

    It gives the grade below [1]

  3. 3

    It uses only >, where it needs > and an equals, ≥ [1]

  4. 4

    So only scores above the boundary get the grade [1]

  5. 5

    For example, a score of 44 is not above 44, so an A-grade score gets a B [1]

3. Testing conditional formatting

Conditional formatting changes how a cell looks when its rule is met. Each criterion needs its own rule.

Test it with data that meets the rule and data that does not. Check that the formatting appears and disappears as planned.

Test blank cells too. Examiners reported formatting that wrongly appeared on blank cells.

Examiner insight

“After that, few candidates were able to describe clearly that rules need to be created for each criterion.” “Some candidates were not always successful in trapping out solutions where three blank cells would display the green background.”

Worked example 14 marks

Marks are stored in cells B2:B30 of a spreadsheet. A mark below 40 must have a red background. A developer sets conditional formatting on the range. Describe how the developer tests it.

  1. 1

    Enter a mark below 40, such as 25, and check that the cell turns red [1]

  2. 2

    Enter a mark of 40, the boundary, and check that the cell is not red [1]

  3. 3

    Enter a mark of 39, the other side of the boundary, and check that the cell is red [1]

  4. 4

    Change a red cell to a mark above 40 and check that the red background goes [1]

4. Normal, extreme and abnormal data

Normal data is within the acceptable range. It should be accepted and give the expected result.

Extreme data is at the boundary of the acceptable range, at the limit of acceptability. It is still accepted.

Abnormal data is outside the acceptable range, or of the wrong type. It is invalid and should be rejected.

When a table asks for one item of each type, give one extreme value, not both.

rule: 0 ≤ x ≤ 60

Examiner insight

“Good answers should have included appropriate headings and details of what was being tested, some sample test data (referring to normal, extreme and abnormal data) and any actions to be taken as a result of the tests.”

Worked example 16 marks

Each mark in a spreadsheet is out of 60, the lowest mark is 0 and only whole marks are allowed. Each mark is validated using this validation rule `>=0 and <=60`. The developer is trying to test the validation rule.

Complete the table for the three types of test data. For each mark the developer enters, suggest how the validation rule deals with the mark.

Type of test dataExample of mark enteredHow the validation rule deals with the mark entered
Normal
Abnormal
Extreme
  1. 1

    Normal: any whole number from 0 to 60, for example 41 [1]

  2. 2

    The system accepts it, because it is within the range [1]

  3. 3

    Abnormal: data outside the range, or not a whole number, for example 68, -2 or pink [1]

  4. 4

    The system rejects it, so it is not accepted [1]

  5. 5

    Extreme: 0 or 60, at the boundary of the acceptable range [1]

  6. 6

    The system accepts it, because the boundary is inside the rule [1]

5. Choosing and justifying test data

Choose test data to suit the test. Then give the reason, because a value with no reason earns few marks.

Normal data tests that valid data is accepted and the output is as expected. Abnormal data tests that invalid data is rejected. Extreme data tests that the boundaries are set correctly.

Examiner insight

“Several managed to provide an acceptable example of test data but did not give adequate reasons for their choice.” “Several identified an appropriate example of test data yet were unable to explain why they had chosen it.”

Worked example 16 marks

A student created a spreadsheet that requires users to enter numerical data. This data must be within a set range.

Identify and justify three types of test data that can be used to test this numerical data.

  1. 1

    Normal: data from within the acceptable range [1]

  2. 2

    To test that it is accepted and the output is as expected [1]

  3. 3

    Abnormal: data outside the acceptable range, or of the wrong type [1]

  4. 4

    To test that it is rejected [1]

  5. 5

    Extreme: data at the boundary of the acceptable range [1]

  6. 6

    To test that the boundaries are set correctly and the data is accepted [1]

Recap

  • A test plan is a table: what is tested, test data, expected result, actual result.
  • Write the expected result before the test. Record the actual result after it.
  • Test a formula at the boundary of each condition. A wrong inequality symbol fails there.
  • Test a validation rule with data it should accept and data it should reject.
  • Conditional formatting needs a rule for each criterion. Test it with data that meets the rule and data that does not.
  • Normal is inside the range, extreme is at the boundary, abnormal is outside the range or the wrong type.
  • Always give the reason for a piece of test data.

End-of-chapter exercise

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

  1. State what is meant by extreme test data.1 mark
    Answer
    1. Data at the boundary of the acceptable range.

    Trap: Extreme does not mean 'very large'. It means on the limit.

  2. A cell accepts whole numbers from 1 to 20 inclusive. State the two extreme values.2 marks
    Answer
    1. 1 and 20.

    Trap: 0 and 21 are just outside the range, so they are abnormal.

  3. State three purposes of using test data on a spreadsheet.3 marks
    Answer
    1. To locate errors in the logic, calculations or formulae [1].
    2. To show what the errors are [1].
    3. To confirm that any validation rules work [1].

    Trap: Explaining why testing is necessary answers a different question.

  4. A cell has the validation rule: whole numbers from 0 to 100 inclusive. State whether each value is normal, extreme or abnormal: 47, 100, 101, 47.5, 0.5 marks
    Answer
    1. 47 is normal [1].
    2. 100 is extreme [1].
    3. 101 is abnormal [1].
    4. 47.5 is abnormal [1].
    5. 0 is extreme [1].

    Trap: 47.5 is inside the range but is not a whole number, so it is abnormal.

  5. A student prepares a test plan table for a spreadsheet before testing it. State the four pieces of information needed in each row.4 marks
    Answer
    1. The type of test and what is being tested [1].
    2. The test data [1].
    3. The expected result [1].
    4. The actual result, filled in after the test [1].

    Trap: The expected result is written before testing, so it cannot be a screenshot of the result.

  6. A cell accepts a time between 09:00 and 17:00 inclusive. Give one item of normal, one of extreme and one of abnormal test data. For each, say how the rule deals with it.6 marks
    Answer
    1. Normal: 12:30 [1], accepted [1].
    2. Extreme: 17:00 (or 09:00) [1], accepted [1].
    3. Abnormal: 17:01 (or 08:59, or the word 'noon') [1], rejected [1].

    Trap: Typing 5:00 for the upper limit enters 05:00 on a 24-hour clock, which is outside the range.

  7. The formula `=IF(B2>50,"Pass","Fail")` is meant to show Pass for a mark of 50 or more. Describe a test that shows the fault and explain the fault.3 marks
    Answer
    1. Enter 50, the boundary, expecting Pass [1].
    2. The cell shows Fail [1].
    3. The formula uses > where it needs ≥, so 50 itself is not passed [1].

    Trap: Testing only 60 and 20 gives the right answers and misses the fault.

  8. Scores from 0 to 100 are in cells F2:F40. A score of 75 or more must have a green background. Describe four tests of the conditional formatting.4 marks
    Answer
    1. Normal: enter 90 and check the cell is green [1].
    2. Normal: enter 40 and check the cell is not green [1].
    3. Extreme: enter 75 and check the cell is green [1].
    4. Enter 74 and check the cell is not green [1].

    Trap: Testing only values far from 75 never tests the boundary, where a wrong symbol fails.

  9. A delivery charge is worked out from the weight in cell B2 by this formula. ``` =IF(B2>20,"Too heavy",IF(B2>5,12,IF(B2>0,6,"Error"))) ``` The intended rules are: more than 0 kg and up to 5 kg costs 6; more than 5 kg and up to 20 kg costs 12; more than 20 kg is too heavy; 0 kg or less is an error. Give the three weights that are extreme test data and the output expected for each.6 marks
    Answer
    1. 0 kg: expected output Error [2].
    2. 5 kg: expected output 6 [2].
    3. 20 kg: expected output 12 [2].

    Trap: A boundary belongs to the band that includes it. 5 kg gives 6, not 12, and 20 kg gives 12, not Too heavy.

  10. In a spreadsheet, cell A2 accepts only whole marks from 0 to 80. Cell B2 holds `=IF(A2>=48,"Pass","Fail")` and shows a red background when it displays Fail. Write five tests: three for the validation rule in A2 (one of each type of test data) and two for the formula and formatting in B2 at its boundary. Give the expected result of each.5 marks
    Answer
    1. A2 normal: 40, accepted [1].
    2. A2 extreme: 80 (or 0), accepted [1].
    3. A2 abnormal: 81 (or -1, or text), rejected [1].
    4. B2 for 48: shows Pass, not red [1].
    5. B2 for 47: shows Fail, red [1].

    Trap: 81 is just outside the range, so it is abnormal. The pass boundary is 47 and 48, not 80.

Say this, not that

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

Loses the markGets the mark
Test data is used because testing is necessary.Test data is used to locate errors in the logic, calculations or formulae and to confirm validation rules work.
A test plan lists the tests I will do.A test plan gives what is being tested, the test data, the expected result and the actual result.
Extreme data is the biggest number I can think of.Extreme data is at the boundary of the acceptable range.
I will test 0 and 61, because they are extreme.0 and 60 are extreme. 61 is outside the range, so it is abnormal.

Frequently asked questions

What does a test plan record for each test?
A test plan is a table, with one row for each test. Each row names what is being tested and the type of test, then gives the test data and the expected result. The expected result is written before the test, and the actual result is filled in after the test is run.
What is the purpose of test data in a spreadsheet?
Test data is used to locate errors in the logic, calculations or formulae, and to show what the errors are. It also confirms that validation rules work. Test data is used because testing is necessary.
What is the difference between normal, extreme and abnormal test data?
Normal data is within the acceptable range and should be accepted. Extreme data is at the boundary of the acceptable range, and it is still accepted. Abnormal data is outside the acceptable range or of the wrong type, and should be rejected.
How do I test a formula that uses a boundary condition?
Test a formula at the boundary of each condition. A wrong inequality symbol fails only at a boundary, so test the boundary of every condition. Use a score exactly on the boundary, such as 44, and compare the result displayed with the expected result.
How do I test conditional formatting?
Test it with data that meets the rule and data that does not. Check that the formatting appears and disappears as planned. Test blank cells too, because examiners reported formatting that wrongly appeared on blank cells. Enter 40, the boundary, and check that the cell is not red.
Is using test data the same as testing a spreadsheet?
No. Some responses confused using test data with the process of testing, so explain why testing is necessary. Test data is used to find errors. A test plan gives the test data and the expected result for each test.

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