1. Lighthouse

Level 3 · Average pages per visit, mobile only

The request

From Thomas Long, Growth Marketer

“I'm redoing the mobile landing pages. For Sunday October 5, how many pages does a mobile visitor look at on average, per traffic source? Desktop and tablet would only muddy it.”

Your goal

Build a PivotTable at H1 on the October 5 sessions: device in Filter set to mobile, source in Rows, pages_viewed in Values summarised by Average. It fills H1:I9.

  • Fill H1:I9 with the right valuesnot done yet

Your sheet

Excel
The sheet for this level
ABCDEFGHIJK
1session_idstarted_atdevicesourcepages_viewedconverted
2335892025-10-05 13:11mobileorganic4FALSE
3335902025-10-05 21:21mobilepaid7FALSE
4335912025-10-05 20:59desktopsocial2FALSE
5335922025-10-05 11:42tabletorganic1FALSE
6335932025-10-05 20:04mobileorganic1FALSE
7335942025-10-05 00:29mobileemail10TRUE
8335952025-10-05 11:41mobilepaid3FALSE
9335962025-10-05 12:32tabletpaid4FALSE
10335972025-10-05 10:45desktopdirect1FALSE
11335982025-10-05 15:42desktoporganic1FALSE
12335992025-10-05 17:48desktoppaid4FALSE
13336002025-10-05 10:35mobileemail8FALSE
14336012025-10-05 11:01mobiledirect1FALSE
15336022025-10-05 21:15tabletorganic1FALSE
16336032025-10-05 23:17mobileorganic3FALSE
17336042025-10-05 21:42desktoppaid10FALSE
18336052025-10-05 05:08mobiledirect6FALSE
19336062025-10-05 07:11mobileorganic1FALSE
20336072025-10-05 09:54mobilesocial7FALSE
21336082025-10-05 09:03mobileorganic1FALSE
22336092025-10-05 00:42mobileorganic5FALSE
23336102025-10-05 05:51desktopdirect1FALSE
24336112025-10-05 22:00desktoppaid1FALSE
25336122025-10-05 22:26desktoporganic1FALSE
26336132025-10-05 06:23mobileorganic10FALSE
27336142025-10-05 12:50mobilepaid3FALSE
28336152025-10-05 17:09tabletpaid10FALSE
29336162025-10-05 21:26desktoporganic6FALSE
30336172025-10-05 12:30mobiledirect6FALSE
31336182025-10-05 09:00mobilepaid3FALSE
32336192025-10-05 08:17mobileorganic1FALSE
33336202025-10-05 20:43mobileemail3TRUE
34336212025-10-05 21:58desktopdirect3FALSE
35336222025-10-05 16:03mobilesocial9FALSE
36336232025-10-05 22:42mobilepaid3FALSE
37336242025-10-05 10:38mobileorganic1FALSE
38336252025-10-05 08:28mobileorganic1FALSE
39336262025-10-05 22:04mobiledirect1FALSE
40336272025-10-05 11:52mobiledirect1FALSE
41336282025-10-05 15:45mobilesocial1FALSE
42336292025-10-05 09:11desktoporganic7FALSE
43336302025-10-05 10:44mobilepaid5FALSE
44336312025-10-05 14:50mobiledirect7FALSE
45336322025-10-05 11:39desktopdirect5TRUE
46336332025-10-05 13:51desktopemail1FALSE
47336342025-10-05 19:52desktopemail2FALSE
48
49
50
51
52

Loading the editor…

    ResultPress Check to compare H1:I9

    Mote checks your result

    Press Check. Each right cell becomes a firefly in your lantern.

    The lesson

    Sum and Count are only two of the ways a PivotTable can summarise. For “how many pages does a visitor look at” you need an Average. And Thomas only wants mobile visitors, so the table needs a filter first.

    The Filter box

    The sheet holds all 46 sessions from Sunday, October 5, in A1:F47: 28 on mobile, 14 on desktop and 4 on tablets. A report filter keeps the records whose field has the value you pick and ignores the rest, without touching the data:

    Box Field
    Filter device → mobile
    Rows source
    Values pages_viewed, summarised by Average

    The filter shows above the table, in the first row: device | mobile, then a blank row, then the PivotTable itself. Excel draws it the same way. Pick another device and every number below changes.

    Average, and the Grand Total

    source        Average of pages_viewed
    direct              3.67
    email               7.00
    organic             2.80
    paid                4.00
    social              5.67
    Grand Total         4.00

    Each row divides that source’s pages by its number of sessions: the 6 direct sessions viewed 22 pages, so 22 / 6 = 3.67. The Grand Total is not the average of the five numbers above it (that would be 4.63). It is all mobile pages divided by all mobile sessions: 112 / 28 = 4.00. A PivotTable always recalculates the total from the records, which is what you want.

    The 0.00 format on I4:I9 keeps the averages readable; in Excel you set it under Value Field Settings → Number Format, so it sticks when the pivot refreshes.

    Small samples

    Email leads with 7 pages per visit, from just 3 sessions. One enthusiastic visitor can move that number a lot. Before Thomas redesigns around it, add session_id as a second Values field with Count (in Excel you can drag several fields into Values) or check a full month. A PivotTable makes numbers look equally solid; they are not.

    Common mistakes

    • Averaging averages. Copying the five source averages into a cell and taking AVERAGE of them weighs a 3-session source like a 10-session one.
    • Filtering the data instead. Deleting desktop rows from the sheet “to filter” destroys the data for the next question. Use the Filter box.
    • Leaving Sum on. Sum of pages_viewed answers “how many pages in total”, not “per visit”.
    • Forgetting the filter is on. Excel shows it only in that small cell above the table. Say “mobile only” in the title of anything you send.

    Pick what may run on this site. You can change this any time from "Cookie settings" at the bottom of every page.