The busiest hour is not always the one that needs help
Every store manager knows the feeling on a Saturday afternoon: the shop is full, the fitting rooms have a queue and the team runs from one customer to the next. So when there is budget for one extra salesperson, the obvious place to put that person is Saturday afternoon. This free first lesson shows why the obvious answer can be wrong, and how ten minutes in Excel with a door counter export gives you a better one.
It is written for store and area managers, retail analysts, franchise owners and anyone who has to plan shifts against footfall. You work with Fernbrook Outfitters, a fictional outdoor-clothing chain, and its Riverside Mall store. The manager can add one salesperson for one 2-hour slot a week. You have the door-counter readings for two Tuesdays, two Thursdays and two Saturdays in October and the current staff rota. All names and figures are invented for teaching, but the method is exactly what you would do with a real export.
Traffic, averages and workload: the core idea
A door counter is a sensor above the entrance that counts people walking in. Most systems export a count per time slot, here per 2-hour block. That count is the store's traffic or footfall, the first of the three numbers that make up retail sales: sales = traffic × conversion rate × average transaction value. This course covers all three, and it starts with traffic because it drives staffing.
One day of door counts is noisy. A school holiday, a rain shower or a promotion in the mall can move a single slot a lot. So you average the same slot over several weeks. Saturday 14:00 had 910 visitors in the first week and 970 in the second, so a typical Saturday 14:00 brings (910 + 970) ÷ 2 = 940. Do that for every day and every slot and you have an hour × day grid, the store's weekly rhythm in one table. Two weeks is the minimum for a lab. In practice you would use more, for example the last six or eight comparable weeks.
Traffic alone does not tell you where the team is stretched. For that you need the workload: visitors per staff member = average visitors ÷ staff on the floor. A slot with 940 visitors and ten people working is less stretched than a slot with 470 visitors and three people. Fernbrook has a simple house rule: more than 100 visitors per staff member in a 2-hour slot counts as stretched. That threshold is part of the fictional case. Your own business would set its own, based on how much service a sale needs.
Worked example: Riverside Mall in October
Here is the result of the lab. The averages come from the door-counter log, the staff numbers from the rota, and the last three columns divide one by the other. Values above the house rule of 100 are in bold.
| Slot | Tue avg | Thu avg | Sat avg | Staff Tue / Thu / Sat | Per staff Tue | Per staff Thu | Per staff Sat |
|---|---|---|---|---|---|---|---|
| 10:00–12:00 | 150 | 190 | 520 | 3 / 3 / 6 | 50.0 | 63.3 | 86.7 |
| 12:00–14:00 | 260 | 330 | 840 | 3 / 3 / 9 | 86.7 | 110.0 | 93.3 |
| 14:00–16:00 | 200 | 280 | 940 | 3 / 3 / 10 | 66.7 | 93.3 | 94.0 |
| 16:00–18:00 | 240 | 360 | 760 | 3 / 3 / 9 | 80.0 | 120.0 | 84.4 |
| 18:00–20:00 | 300 | 470 | 520 | 3 / 3 / 6 | 100.0 | 156.7 | 86.7 |
| Day total | 1,150 | 1,630 | 3,580 |
Saturday is by far the busiest day: 3,580 visitors on average against 1,150 on a Tuesday, about 3.1 times as many. Its peak is the 14:00 slot with 940 visitors. But Saturday is also the day the manager already staffs heavily, with six to ten people on the floor. Divided out, each person looks after 84 to 94 visitors per slot, below the house rule in every slot.
Thursday tells a different story. Traffic builds from 190 in the morning to 470 in the 18:00–20:00 slot as people come in after work, but the rota keeps three people on the floor all day. In the evening slot each of them has to look after 156.7 visitors, by far the highest workload of the week. Thursday 12:00 (110) and 16:00 (120) are also above the line. Tuesday 18:00 sits exactly at 100, which by the rule "more than 100" is not yet stretched.
So the extra salesperson should go to Thursday 18:00–20:00, not to the Saturday peak. With four people instead of three the workload falls to 470 ÷ 4 = 117.5, still above 100 but much more manageable, and a strong argument for the next rota review. One more person on Saturday at 14:00 would move that slot from 94 to about 85 visitors each, a much smaller gain where the team is already coping.
These are the formulas that produce the numbers above. The key one is the AVERAGEIFS in G4, written once and copied over the whole grid.
| Cell | Formula | Result |
|---|---|---|
| G4 | =AVERAGEIFS($D$4:$D$33,$B$4:$B$33,G$3,$C$4:$C$33,$F4) | 150 (Tuesday 10:00) |
| I6 | same formula, copied | 940 (Saturday 14:00) |
| I9 | =SUM(I4:I8) | 3,580 visitors on an average Saturday |
| D35 | =INDEX(F4:F8,MATCH(MAX(I4:I8),I4:I8,0)) | 14, the Saturday peak slot |
| D36 | =I9/G9 | 3.11, Saturday ÷ Tuesday traffic |
| G20 | =G4/G13 | 50.0 visitors per person |
| H24 | =H8/H17 | 156.7, the most stretched slot |
How to do it in Excel, step by step
- Export the door-counter data with one row per day and slot: date, day name, slot start hour, visitors. In the lab this is A4:D33. If your export has a date only, add the day name with
=TEXT(A4,"ddd"). - Build the grid frame: slot hours 10, 12, 14, 16, 18 down F4:F8 and the day names Tue, Thu, Sat across G3:I3. The labels must match the values in the log exactly, because AVERAGEIFS compares them as criteria.
- Click G4 and type
=AVERAGEIFS($D$4:$D$33,$B$4:$B$33,G$3,$C$4:$C$33,$F4). Use F4 while the cursor is on each reference to cycle through the $ styles. The data ranges are fully locked,G$3locks the row of the day labels, and$F4locks the column of the hours. - Copy G4 with Ctrl+C, select G4:I8 and paste with Ctrl+V. Faster still: select G4:I8 first, type the formula and press Ctrl+Enter. Every cell now reads its own day and hour. Saturday 14:00 in I6 should show 940.
- Add day totals in G9:I9 with
=SUM(G4:G8). Then the ratio Saturday ÷ Tuesday in D36:=I9/G9, which returns 3.11. - Turn the grid into a heatmap: select G4:I8, then Home › Conditional Formatting › Color Scales and pick a white-to-blue scale. The Saturday afternoon block turns dark at a glance.
- Find the peak Saturday slot in D35:
=INDEX(F4:F8,MATCH(MAX(I4:I8),I4:I8,0)). MATCH finds the position of the largest value, INDEX returns the hour in that position. In Excel 365=XLOOKUP(MAX(I4:I8),I4:I8,F4:F8)does the same. - Chart the rhythm: select F3:I8 including the empty corner cell F3, then Insert › Charts › Line › Line with Markers. The empty corner tells Excel that row 3 holds series names and column F holds the category labels.
- Copy the rota into G13:I17 (staff on the floor per slot) and build the workload grid G20:I24 with
=G4/G13, copied across the block. - Add the alert: select G20:I24, choose Home › Conditional Formatting › Highlight Cells Rules › Greater Than…, type 100 and pick Light Red Fill. Then read off the slot with the highest workload: here Thursday 18:00.
=COUNTIFS($B$4:$B$33,G$3,$C$4:$C$33,$F4). If one cell is based on a single day because the other day was a public holiday or the counter failed, the heatmap will look precise when it is not.Reading the traffic shape next to the staff shape
The lab puts the line chart of traffic next to a chart of the current rota for a reason. When the two shapes match, the rota follows demand. When they diverge, you have found a staffing problem without any further calculation. At Riverside Mall the Saturday rota rises from six to ten people and falls back to six, almost exactly the hump of Saturday traffic. Somebody has clearly planned that day. The Tuesday and Thursday rota, by contrast, is a flat line of three people, while Thursday traffic more than doubles between the morning and the evening.
A flat rota on a rising curve is one of the most common patterns in store data, because rotas are often built from contract hours and habits rather than from footfall. It does not need a sophisticated model to spot. One average per slot, one division by staff and one conditional-formatting rule are enough. The point of a lesson like this is not the formula itself, it is the habit of asking "per person" instead of "in total" before deciding where people go.
It is also worth noting what this lesson does not yet know. A slot with 156.7 visitors per staff member is stretched, but is it losing sales? That depends on conversion, the share of visitors who buy, and on how much each purchase is worth. If Thursday evening visitors are mostly browsing on the way home, the extra person may add little. If they come with a clear purchase in mind and leave because nobody is free to help, the extra person pays for themselves. The rest of the course adds exactly those two numbers and then tests the link between staffing and conversion directly.
Why averaging over the right rows matters
AVERAGEIFS is the workhorse here because it combines two filters, day and slot. A common shortcut is AVERAGEIF with only the day as criterion, which gives you the average slot of a Saturday (716) instead of the average Saturday 14:00 (940). That number is useful for comparing days, but it hides exactly the peak you are trying to staff.
The opposite mistake is SUMIFS instead of AVERAGEIFS. It adds both Saturdays together and returns 1,880 for the 14:00 slot. On a heatmap the pattern looks the same because every cell is doubled, so the error is easy to miss. It only becomes visible when you divide by staff and suddenly every slot looks dangerously stretched. That is the reason to check one cell by hand, as the theory does with (910 + 970) ÷ 2.
Finally, be careful about which weeks you include. Averaging two normal Saturdays with a Black Friday weekend, a big sale or a mall event will push the averages up and lead to overstaffing on ordinary weeks. Later in the course a whole lesson deals with weather and event effects, and the general rule is simple: compare like with like, and keep unusual days in a separate column.

Common mistakes and how to spot them
- Staffing the crowd instead of the load. The darkest cell of the traffic heatmap is not necessarily the slot that needs help. Always divide by staff on the floor before deciding.
- SUMIFS instead of AVERAGEIFS. You get 1,880 for Saturday 14:00 instead of 940. Spot it by checking one cell by hand from the log.
- A missing $ in the criteria. If G4 uses
G3instead ofG$3, the copied formula in G5 looks for the day in G4, which is a number, and returns#DIV/0!because nothing matches. A grid with errors only in some rows or columns is the typical symptom. - Day labels that do not match. "Sat" in the log and "Saturday" in the header never match, and AVERAGEIFS returns
#DIV/0!. Copy the labels from the data, or use=TEXT(date,"ddd")in both places. - Workload upside down.
=G13/G4gives staff per visitor, 0.02 instead of 50. If the numbers are tiny, you have divided the wrong way. - Reading a threshold as "at least". The house rule says more than 100. Tuesday 18:00 at exactly 100 is not flagged. The Excel rule "Greater Than" matches that wording, "Greater Than or Equal To" would not.
- Too few weeks. Two weeks is enough to learn the method. For a real rota decision use more comparable weeks and check the count behind each average.
Quick reference: functions and shortcuts used
| Function / shortcut | What it does | Used here for |
|---|---|---|
AVERAGEIFS(avg_range, crit_range1, crit1, …) | Averages the rows that meet every criterion | The hour × day traffic grid |
SUMIFS | Adds the rows that meet every criterion | Total visitors per day |
COUNTIFS | Counts matching rows | Checking how many weeks each average is based on |
INDEX(range, MATCH(MAX(r), r, 0)) | Returns the label next to the largest value | The peak slot |
XLOOKUP(MAX(r), r, labels) | Same in Excel 365 and 2021 | Alternative to INDEX/MATCH |
G$3, $F4 | Mixed references: lock the row or the column only | One formula fills the whole grid |
| F4 | Cycles $ styles while editing a reference | Building the mixed references |
| Ctrl+Enter | Enters the same formula in every selected cell | Filling G4:I8 in one go |
| Home › Conditional Formatting | Colour scales and rules | Heatmap and the >100 alert |
Real-world uses
- Weekly rota planning. A store manager refreshes the door-counter export every Monday, the grid recalculates and the conditional formatting shows which slots will be stretched under next week's rota.
- Break scheduling. The traffic curve shows the quiet windows, such as Tuesday 10:00 and 14:00 here, where breaks and stock deliveries cost the least service.
- Area manager comparison. Put several stores side by side with the same AVERAGEIFS grid and you see which locations share a pattern and which need a different rota template.
- Opening-hours decisions. If the evening slot keeps rising, as Thursday does here, it is a reason to test a later closing time on that day before adding hours across the week.
- Arguing for budget. A chart of visitors per staff member above a clear threshold is far more convincing in a budget meeting than "we are always busy on Thursdays".
What you will build in the rest of this course
This first lesson is free. The labs that follow are part of the full course, a one-time purchase of $9.90, and they turn the same door-counter data into a complete picture of store performance.
Conversion Rate: Transactions ÷ Visitors. You clean raw door counts into visitors, calculate conversion per store and for the whole chain, and size the gap between each store and the best one. It is the number that tells you how many of those Saturday visitors actually bought something.
Average Transaction Value and Units per Transaction. You calculate ATV, UPT and average unit retail per store and see how the three numbers fit together, so you know whether a store sells more items or more expensive ones.
Sales = Traffic × Conversion × ATV: Explaining a Sales Change. You split Riverside Mall's sales drop from August to September into a traffic, a conversion and an ATV effect that add up exactly to the change, the analysis every area manager wants after a bad month.
Staff-to-Traffic Ratio and Conversion by Staffing Level (CORREL). You take the workload idea from this lesson further and measure with CORREL how conversion moves when each person looks after more visitors.
Store Comparison and Best-Practice Gaps. You set a top-quartile conversion benchmark, size each store's sales opportunity and find the store where closing the gap is worth the most money.
Weather and Event Effects on Traffic and Conversion. You measure how rain changes visitors and conversion and how much a street festival lifts Saturday traffic, comparing like with like.
Mid-course Project: Store Performance Dashboard with KPIs, Chart and Red Flags. You finish with a monthly dashboard: conversion, ATV and growth against last year, a column chart of sales and a red flag on every store that shrank.
Summary
Averaging door counts by day and slot with one AVERAGEIFS formula turns a raw export into the weekly rhythm of a store. Dividing that traffic by the staff on the floor shows where the team is actually stretched. At Riverside Mall the busiest slot is Saturday 14:00 with 940 visitors, but the slot that most needs an extra person is Thursday 18:00, where three people face 470 visitors, 156.7 each.
Now scroll up to the lab and build both grids yourself: the traffic heatmap, the line chart, the peak slot, the workload grid and the alert. The Coach checks every step and explains what went wrong if a number does not match.
Frequently asked questions
How do I calculate average footfall by hour and day in Excel?
Use AVERAGEIFS with two criteria, the day and the hour, for example =AVERAGEIFS($D$4:$D$33,$B$4:$B$33,G$3,$C$4:$C$33,$F4). With mixed references one formula fills the whole hour × day grid.
What is a store traffic heatmap?
A grid of average visitors with hours in the rows and days in the columns, coloured with a colour scale so busy slots stand out. In Excel you build it with AVERAGEIFS and Home › Conditional Formatting › Color Scales.
How do I match retail staffing to store traffic?
Divide the average visitors in each slot by the number of staff on the floor in that slot. The slots with the highest visitors per staff member are the ones that need extra people, which is not always the busiest slot.
Why use AVERAGEIFS and not SUMIFS for door counts?
SUMIFS adds all matching weeks together, so the result grows with the number of weeks in the data. AVERAGEIFS gives the typical value of one slot, which is what you compare with a one-week rota.
How do I find the peak hour in Excel?
Combine INDEX and MATCH with MAX, for example =INDEX(F4:F8,MATCH(MAX(I4:I8),I4:I8,0)), which returns the hour next to the largest value. In Excel 365 you can use =XLOOKUP(MAX(I4:I8),I4:I8,F4:F8).
How many weeks of door-counter data should I average?
More than one, and only comparable weeks. Leave out holidays, big sales and events or analyse them separately, and use COUNTIFS to check how many days each average is based on.
Keep going: Store Traffic & Conversion Analytics: Footfall, Conversion, ATV & Staffing
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time CHF 9.90.
- Conversion Rate: Transactions ÷ Visitors
- Average Transaction Value and Units per Transaction
- Sales = Traffic × Conversion × ATV: Explaining a Sales Change
- Staff-to-Traffic Ratio and Conversion by Staffing Level (CORREL)
- Store Comparison and Best-Practice Gaps
- Weather and Event Effects on Traffic and Conversion
- Mid-course Project: Store Performance Dashboard with KPIs, Chart and Red Flags
- Door-Counter Data Quality: Outages, Staff Passes and Plausibility Checks
- Passing Traffic and the In-Store Funnel: Capture Rate, Try-On Rate and Window Potential
- Forecasting Next Week's Traffic: Moving Average and Weekday Index
- Like-for-Like Traffic and Conversion: Same-Store Sets, Percent vs Percentage Points
- Traffic-Based Staffing: Required Staff per Hour, Coverage Gaps and Sales per Labour Hour
- Sales Targets and What-If Grids: Required Conversion and Traffic × Conversion Scenarios
- Did the Campaign Work? Test vs Control Stores and Incremental Sales
- Project: North Region Traffic & Conversion Dashboard with Levers and Priority Flags
- Real Change or Noise? Testing Conversion Changes with a Two-Proportion z-Test
- Checkout Queues: Till Utilisation, Walk-outs and Lost Sales per Hour (with Chart)
- Is the Last Hour Worth It? Contribution per Opening Hour and the Cost of Closing (with Chart)
- Final Project: Year-in-Review Dashboard – Monthly KPIs, Year-to-Date and the Annual Sales Bridge (with Chart)