Skip to the page
Year 11 · ICT · Summer 1 · Final revision and the exams

Last Paper 3 practice

Exam practicePresent ▶

What this lesson covers

20.1c Lookup functions

Cambridge IGCSE ICT 0417 · Topic 20: Spreadsheets · Paper 3

20.3 Display, format and print

Cambridge IGCSE ICT 0417 · Topic 20: Spreadsheets · Paper 3

21.3b CSS: page styles, tables and the cascade

Cambridge IGCSE ICT 0417 · Topic 21: Website authoring · Paper 3

You will learn to

  • Complete a Paper 3 practice under time, using your timing plan.
  • Use the end-of-paper checks: formulae visible, links tested, stylesheet attached.
  • Correct every lost mark using the mark scheme.

Success criteria

  • I can finish both tasks within the time.
  • I can show a formulae printout where every formula is readable.
  • I can fix every lost mark in the corrections time.
The syllabus points for these sections
  • Use VLOOKUP with an exact match and with an approximate match.
  • Use HLOOKUP on a table laid out across rows.
  • Use LOOKUP on sorted data and know its limits.
  • Use XLOOKUP, including a message when nothing is found.
  • Switch between formulae view and values view, and make every cell fully visible.
  • Format cells: bold, italic, shading, borders, alignment, wrap text, hide and show.
  • Apply number formats and conditional formatting.
  • Set up the page to print formulae and values clearly.
  • Avoid the common ways spreadsheet marks are lost.
  • Style h1, h2, h3, p and li in one external stylesheet.
  • Style tables and cells: borders, collapse, padding, spacing, size, colour and alignment.
  • Apply the cascading order to predict which style wins.
  • Give clear evidence and avoid the common ways website marks are lost.

Key words

Say each word, then read what it means. Every one is in the glossary too.

Cell
One box in the grid, where a column and a row meet.
Cell reference
The address of a cell: column letter then row number, such as C3.
Range
A block of cells written first:last, such as C3:C8.
Formula
A calculation in a cell that starts with =.
Function
A ready-made formula with a name, such as SUM or VLOOKUP.
Argument
One input to a function, written inside its brackets and separated by commas.
Relative reference
A reference like E3 that moves when the formula is copied.
Absolute reference
A reference like $I$7 that stays fixed when the formula is copied.
Named range
A name, such as TripCost, given to a cell or range and used in formulae.
Lookup
A function that finds a value in a table and returns a matching value.
Exact match
A lookup that only accepts the identical value (FALSE in VLOOKUP).
Conditional formatting
Formatting that changes automatically when a cell meets a rule.
Formulae view
A display mode that shows the formulae in cells instead of their results.
HTML
HyperText Markup Language: the language of the content layer of a web page.
CSS
Cascading Style Sheets: the language of the presentation layer, which sets how a page looks.
Tag
A word in angle brackets, such as `<p>`, that marks the start or end of an element.
Attribute
Extra information inside an opening tag, written name="value", such as src or alt.
Head
The part of a page holding information about it: title, meta tags, stylesheet links.
External stylesheet
A separate .css file attached to pages with the link element.
Inline style
CSS written in a style attribute inside one tag; it affects only that element.
Class
A label given to elements with the class attribute so CSS can style them as a group.
Selector
The part of a CSS rule that says which elements it styles, such as h1 or .note.
Generic font family
A fallback type of font (serif, sans-serif, monospace) used if named fonts are missing.
Cascade
The rules that decide which style wins when two styles set the same property.
Relative path
A file location described from the current file's folder, such as images/logo.png.
Absolute path
A full file location from the very start, such as a full URL or C:/...
Padding
The space inside an element or cell between its border and its content.
Alt text
Alternative text for an image, read by screen readers and shown if the image fails.

The explanation

Read it here, or open the study page below to go one step at a time with things to try.

20.1c Lookup functions

VLOOKUP: exact match

VLOOKUP (vertical lookup) searches down the first column of a table for a value. Then it returns a value from the same row.

It has four arguments. The table shows each one.

Copied down column E, it finds the right meal price for every pupil.

ArgumentWhat it meansIn =VLOOKUP(D3,$H$3:$I$5,2,FALSE)
lookup_valuewhat to look forD3 (the code V)
table_arraythe table; its first column holds the codes$H$3:$I$5 (absolute, so it does not move)
col_index_numwhich column of the table to return, counting from 1 at the table's left edge2 (column I, Price €)
range_lookupFALSE = exact match only. TRUE = approximate matchFALSE
e.g.Example
E3: =VLOOKUP(D3,$H$3:$I$5,2,FALSE) Step 1: D3 holds V. Step 2: search down H3:H5 (M, P, V). V is in row 5. Step 3: move across to column 2 of the table, which is column I: 6.50. Result: 6.50. Copied to E4: D4 holds M → 7.50.
?Why?

Exact match (FALSE) is right for codes, names and IDs. A missing code gives #N/A. That warns you, instead of quietly giving a wrong price.

!Watch out

The column number counts from the left edge of the table, not from column A. Column I is column 2 of H3:I5, not column 9.

VLOOKUP: approximate match

With TRUE, or with the 4th argument left out, VLOOKUP does an approximate match. It finds the largest value that is less than or equal to the lookup value.

The first column must be sorted in ascending order (smallest first). If not, the result can be wrong with no error shown.

Use it for bands: ticket prices by age, grades by mark, discounts by quantity.

KL
2Age fromTicket €
300.00
464.00
5188.00
e.g.Example
Entry tickets for the Alcázar of Segovia by age (sample prices): =VLOOKUP(15,$K$3:$L$5,2,TRUE) 15 is not in K3:K5. The largest value that is 15 or less is 6 (row 4). Column 2 of row 4 → 4.00 =VLOOKUP(18,$K$3:$L$5,2,TRUE) → 18 is found exactly → 8.00 =VLOOKUP(4,$K$3:$L$5,2,TRUE) → the largest value that is 4 or less is 0 → 0.00
!Watch out

Leaving out the 4th argument means TRUE. For codes, always type FALSE. Otherwise a missing code can return a wrong row instead of #N/A.

HLOOKUP

HLOOKUP (horizontal lookup) is VLOOKUP turned on its side. It searches across the top row of a table, then goes down.

Argument 1, lookup_value: what to find (B4, the form 10B).

Argument 2, table_array: the table, with codes in its top row ($H$12:$J$13).

Argument 3, row_index_num: which row of the table to return, counting from 1 at the top (2). Argument 4, range_lookup: FALSE for an exact match.

HIJ
1210A10B10C
13Ms RuizMr LeeMs Ortega
e.g.Example
=HLOOKUP(B4,$H$12:$J$13,2,FALSE) Step 1: B4 holds 10B. Step 2: search across H12:J12 (10A, 10B, 10C). 10B is in column I. Step 3: go down to row 2 of the table, which is row 13: Mr Lee.
?Why?

Use HLOOKUP when the codes run across a row. Use VLOOKUP when they run down a column. Look at the table in the question before choosing.

LOOKUP

LOOKUP searches one column (or row) and returns the value in the same position from another column (or row).

Argument 1, lookup_value: what to find. Argument 2, lookup_vector: the single column to search. Argument 3, result_vector: the column of answers, the same size.

LOOKUP always does an approximate match. The lookup vector must be sorted in ascending order. With no exact match, it uses the largest value that is smaller.

e.g.Example
=LOOKUP(D4,$H$3:$H$5,$I$3:$I$5) D4 holds M. M is 1st in H3:H5 (M, P, V are in alphabetical order). The 1st value in I3:I5 is 7.50. Result: 7.50
!Watch out

LOOKUP has no exact-only mode. A missing code X returns the price for V (the largest code before X) instead of an error. Use it only on sorted data, and only when the question asks for it.

XLOOKUP

XLOOKUP is the newest lookup. It searches one column (or row) and returns from another. Unlike LOOKUP, it does an exact match by default.

Argument 1, lookup_value. Argument 2, lookup_array: where to search. Argument 3, return_array: where the answers are.

Argument 4, if_not_found, is optional: what to show when there is no match. Optional arguments 5 and 6 set the match mode and the search direction.

The answer column can be to the left of the search column. VLOOKUP cannot do that.

e.g.Example
=XLOOKUP(D8,$H$3:$H$5,$I$3:$I$5,"No meal") D8 holds P → 2nd in H3:H5 → 2nd in I3:I5 → 6.00 If D8 held X → no match → shows No meal Looking left: =XLOOKUP(46.5,F3:F8,A3:A8) → 46.50 is in F6 → A6 → David
!Watch out

XLOOKUP is only in recent spreadsheet software. Older software shows #NAME?. Check before the exam which functions your software has.

20.3 Display, format and print

Show formulae, not only values

Normally cells show values: the results. Formulae view shows what is typed in each cell.

Most spreadsheets have a show formulas option, often on the formulas tab or in the view settings.

In formulae view, widen columns until every formula is fully visible. A cut-off formula cannot be marked.

Adjust row heights and column widths, and wrap text in long headings, so nothing is hidden. Hide or show rows and columns only when the task says.

E3   =VLOOKUP(D3,$H$3:$I$5,2,FALSE)
E4   =VLOOKUP(D4,$H$3:$I$5,2,FALSE)
...  (same pattern down to E8)
F3   =$I$7+E3-C3
F4   =$I$7+E4-C4
...  (same pattern down to F8)
G3   =IF(F3=0,"Paid",IF(F3<=10,"Nearly","Chase"))
...  (same pattern down to G8)
C9   =SUM(C3:C8)
E9   =SUM(E3:E8)
F9   =SUM(F3:F8)
C10  =AVERAGE(C3:C8)
?Why?

In formulae view numbers lose their formatting, so 46.50 shows as 46.5. That is normal. The examiner wants to see the formulae, not the formatting.

Format cells: text, shading, borders, alignment

Typical tasks: make headings bold or italic, add shading (a fill colour), add borders, and set alignment.

Align text to the left and numbers to the right, so the decimal points line up.

Merge and centre a title across the top of the data, for example A1:G1.

Apply exactly what is asked, to exactly the cells named.

?Why?

Consistent formatting is a house style (topic 14). Examiners check that every cell in the stated range has the format, not only the first one.

Number formats

A number format changes how a value looks. It does not change the value.

Decimal places: 31.8333 shown to 2 decimal places is 31.83. Currency adds a symbol: €31.83, or 31,83 € in Spanish style.

Percentage: the value is shown multiplied by 100, with a % sign. 0.25 shows as 25%.

Use the symbol asked for: euro (€), pound (£) or dollar ($). The $ in a currency format has nothing to do with the $ in an absolute reference.

e.g.Example
Share of the cost Bruno has paid: =C4/($I$7+E4) → 30.00 ÷ (40.00 + 7.50) = 30.00 ÷ 47.50 = 0.6315… Percentage format, 0 decimal places → 63% Percentage format, 1 decimal place → 63.2%
!Watch out

Do not multiply by 100 and also apply the percentage format. You would get 6315.8%. The format does the × 100 for you.

Conditional formatting

Conditional formatting changes a cell's format automatically when its value meets a rule.

Select the range, choose the rule (for example "greater than"), type the value, then pick the format.

Because it is a rule, the format updates when the data changes. Colour added by hand does not.

e.g.Example
Rule 1: F3:F8, cell value greater than 20 → red fill. David (46.50) and Félix (22.50) turn red. Rule 2: G3:G8, cell value equal to Paid → green text. Ana and Carmen turn green. If Félix pays €5 more, F8 becomes 17.50 and the red disappears by itself.
!Watch out

Apply the rule to the whole range asked (F3:F8), not to one cell. "Greater than 20" does not include 20. Use "greater than or equal to" if 20 should count.

Page layout for printing

Set the orientation: portrait (tall) or landscape (wide). Formulae printouts are wide, so landscape usually fits better.

Use fit to page to scale the printout to 1 page wide, or to the number of pages the task says. Set a print area if only part of the sheet must print.

For formulae printouts, switch on gridlines and row and column headings. Then the examiner can see which cell holds each formula.

Add a header or footer with your name, centre number and candidate number. Check the print preview before you print.

?Why?

A formula like =$I$7+E3-C3 means nothing on its own. With headings, the examiner sees it sits in F3 and can check what I7 holds.

!Watch out

"Fit to 1 page wide" is not "fit to 1 page". Squeezing a long sheet onto one page can make the text too small to read.

How spreadsheet marks are lost

Most lost marks come from the evidence, not from wrong thinking.

Before each printout, ask: is everything visible, is it on the right number of pages, and is my name on it?

MistakeHow to avoid it
Formula cut off in the printoutwiden columns in formulae view
No row and column headings on a formulae printoutswitch them on in page setup
Typed number instead of a formula or cell referencealways point to the cell that holds the value
Missing $, so copied formulae breakcheck the last cell you copied into
Wrong range (includes a heading or total)click the formula and check the coloured outline
Sorting one column on its ownselect the whole list before sorting
Named range spelt differently from the questioncopy the name exactly
No name, centre number or candidate numberheader or footer on every printout
21.3b CSS: page styles, tables and the cascade

A full stylesheet for h1, h2, h3, p and li

Exam tasks often give a list of styles to set for each element. Write one rule per selector, in the same order as the list.

Repeat a property in each rule where the task asks for it, even if it looks the same as another rule.

Try the toy: paste this CSS into the CSS box. In the HTML box, replace everything between `<body>` and `</body>` with this HTML, so the stylesheet link stays. Change the h2 colour or the p font size and watch the preview update.

/* Café Retiro house style */
body {
    background-color: #FDF6EC;
}

h1 {
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-size: 32px;
    color: #8B4513;
    text-align: center;
}

h2 {
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-size: 24px;
    color: #2E7D32;
}

h3 {
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-size: 18px;
    color: #2E7D32;
    font-style: italic;
}

p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    color: #333333;
    text-align: justify;
}

li {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: bold;
}
<h1>Café Retiro</h1>
<h2>Breakfast</h2>
<h3>Served until 12:00</h3>
<p>Fresh coffee, toast with tomato and olive oil, and homemade cakes.</p>
<ul>
    <li>Café con leche</li>
    <li>Tostada con tomate</li>
    <li>Tarta de Santiago</li>
</ul>
?Why?

The li rule makes the three menu items bold. Their font, size and colour come from the li rule too, so lists match the paragraphs.

There is something to try for this step in the IGCSE library.

Table borders: thickness, colour, collapse, invisible

border sets thickness, style and colour in one line: `border: 2px solid #8B4513;`. The style must be given, such as solid, dashed or dotted.

A border on table styles only the outside edge. Borders between cells need a rule for th and td too.

border-collapse: collapse merges the double lines between cells into single lines.

To make borders invisible, use border: none (or border-style: hidden). To make them visible, give a style such as solid.

table {
    border: 3px solid #8B4513;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #8B4513;
}

/* a layout table with no visible borders */
table.plain, table.plain td {
    border: none;
}
!Watch out

border: 2px #8B4513; with no style shows no border at all. The default style is none.

Cells: padding, spacing, size, colour and alignment

padding is the space inside a cell, between its border and its content.

border-spacing is the gap between cells. It works only when border-collapse is separate, which is the default.

text-align sets horizontal alignment (left, center, right). vertical-align sets vertical alignment (top, middle, bottom).

Cells take width, height and background-color like any other element.

table {
    width: 80%;
    border-collapse: separate;
    border-spacing: 4px;
}

th {
    background-color: #8B4513;
    color: #FFFFFF;
    padding: 8px;
}

td {
    height: 40px;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    background-color: #FFF3E0;
}
?Why?

Padding stops text touching the border, so the table is easier to read. Spacing separates cells into boxes.

The cascade: which style wins

When two rules set the same property on the same element, the browser uses the cascade to choose.

Highest priority first: inline style, then internal stylesheet, then external stylesheet, then the browser's own defaults.

Internal beats external when the `<style>` element comes after the `<link>`, which is the normal order. In fact, the rule read last wins.

Inside one stylesheet, a later rule beats an earlier rule for the same selector. A class selector beats a plain element selector, whatever the order.

e.g.Example
Breakfast: the external rule says green, the internal rule says blue. Internal wins → blue. Lunch: the inline style says red. Inline wins → red. Both headings are still 24px, because only the external rule sets font-size. The cascade decides each property separately.
<link rel="stylesheet" href="styles/cafe.css">  <!-- h2 green -->
<style>
    h2 { color: #1565C0; }                      /* h2 blue */
</style>
...
<h2>Breakfast</h2>
<h2 style="color: #C62828;">Lunch</h2>        <!-- inline red -->
/* styles/cafe.css */
h2 {
    color: #2E7D32;
    font-size: 24px;
}

How website marks are lost

Most lost marks come from small typing errors that a browser ignores without warning.

Before taking screenshots, open the page in a browser and check every style and link really works.

MistakeHow to avoid it
Absolute path to a local file (C:/... or file:///...)use relative paths such as styles/cafe.css
colour or centre in CSSuse color and center
Missing ; or }, so later styles failend every declaration with ; and close every rule
Quotes round a generic familyfont-family: Arial, sans-serif;
Size with no unit or a space (16 or 16 px)16px
`<style>` tags inside the .css filethe .css file holds CSS only
File saved as cafe.css.txt or with wrong capitalssave as the exact name and type given
Missing alt text, or tags not closedcheck each tag has its partner
URL without https://write the full URL

Giving evidence

Take a screenshot of the HTML source in the text editor, with every line readable. Use more than one screenshot if the code is long.

Take a screenshot of the page in a browser, showing the result of the styles.

Take a screenshot of the CSS file in the editor, showing its file name if possible.

Paste them into the evidence document in the order the question asks, and label each one.

?Why?

The source proves which tags, attributes and paths you used. The browser view proves they work. Examiners often need both to award a mark.

!Watch out

A screenshot of a page that looks right earns nothing if the code that made it is cut off. Zoom so the code is readable but nothing is hidden.

Study it

Open the study page and go one step at a time.

ICT topic 1

Types and components of computer systems

Step by step, with exam questions and a quiz.

ICT topic 2

Input and output devices

Step by step, with exam questions and a quiz.

ICT topic 3

Storage devices and media

Step by step, with exam questions and a quiz.

ICT topic 4

Networks and the effects of using them

Step by step, with exam questions and a quiz.

ICT topic 5

The effects of using IT

Step by step, with exam questions and a quiz.

ICT topic 6

ICT applications

Step by step, with exam questions and a quiz.

ICT topic 7

The systems life cycle

Step by step, with exam questions and a quiz.

ICT topic 8

Safety and security

Step by step, with exam questions and a quiz.

ICT topic 9

Audience

Step by step, with exam questions and a quiz.

ICT topic 10

Communication

Step by step, with exam questions and a quiz.

ICT topic 11

File management

Step by step, with exam questions and a quiz.

ICT topic 12

Images

Step by step, with exam questions and a quiz.

ICT topic 13

Layout

Step by step, with exam questions and a quiz.

ICT topic 14

Styles

Step by step, with exam questions and a quiz.

ICT topic 15

Proofing

Step by step, with exam questions and a quiz.

ICT topic 16

Graphs and charts

Step by step, with exam questions and a quiz.

ICT topic 17

Document production

Step by step, with exam questions and a quiz.

ICT topic 18

Databases

Step by step, with exam questions and a quiz.

ICT topic 19

Presentations

Step by step, with exam questions and a quiz.

ICT topic 20

Spreadsheets

Step by step, with exam questions and a quiz.

ICT topic 21

Website authoring

Step by step, with exam questions and a quiz.

Check yourself

One question at a time. The reason shows after each answer.

Saved on this device.