Delivery route planner in Excel: arrival times, time windows and load
Six customers, one vehicle, and every customer has a time window: does the order of stops work? This template takes the start time, drive times and service times, works out the arrival at each stop, warns you when a stop is late and shows how full the vehicle is after every stop.
In short: the stops are listed top to bottom in the order they are driven. Arrival = departure from the previous stop plus drive time, departure = MAX(arrival,window_start) plus service time. If the arrival is after the window closes, the row turns red. The load goes down by each drop-off and up by each pickup. You type in distances and drive times yourself: the template has no map and does not calculate routes.
You should know: basic arithmetic and IF. Working with times and MAX is explained in the exercise.
Try it now
The driver leaves the depot at 7:45 and has five stops with time windows. Where is he when, and how much slack is left before each window closes?
Task The driver leaves the depot at the time in G2. F3: arrival = departure from the previous stop plus its drive time to the next stop. G3: departure = arrival, but not before the window opens, plus the service time. H3: slack in whole minutes until the window closes (negative means late). All three formulas are used down to row 7.
| A | B | C | D | E | F | G | H | I | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Stop | Window from | Window to | Service (min) | Minutes to next stop | Arrival | Departure | Slack (min) | |
| 2 | Depot | 18 | 7:45 | ||||||
| 3 | Corner Bakery | 7:00 | 8:30 | 10 | 11 | ||||
| 4 | Market Cafe | 8:00 | 9:00 | 15 | 14 | ||||
| 5 | Park Hotel | 9:30 | 10:30 | 20 | 20 | ||||
| 6 | Riverside Deli | 9:00 | 10:00 | 15 | 13 | ||||
| 7 | Hill Farm Shop | 10:00 | 12:00 | 10 | |||||
| 8 | |||||||||
| 9 |
Download the delivery route planner
The file holds a route sheet for the start and up to 29 more stops with time window, arrival, waiting, service time, departure and a check, plus distance and drive time to the next stop, drop-off, pickup, load and load percentage. The top shows total distance, drive time, end of route, total time, waiting time, the number of late stops and the peak load. A route with five customers is filled in as an example, and there is an instructions sheet. Distances are in miles and times use the 24-hour clock; load and capacity can be pounds, kilograms, parcels or pallets, as long as you use one unit throughout.
Enlarge previewDownload the finished template
The finished Excel file delivery-route-planner.xlsx, with sample rows and instructions, is free. All you need is a free account: no subscription, no payment details.
Figures, rates and sample data in the templates are as of 13 November 2026, without guarantee. Check that they still apply to you. The templates are mainly meant to show how to build this in Excel.
Create a free account and download the template Already have an account? Log in
How the route planner is laid out
| Column | Contents | Input or formula |
|---|---|---|
| F2, F3 | Start time, capacity | Inputs |
| B to E | Stop, address, window from, window to | Inputs |
| F | Arrival | =I8+L8/1440 |
| G | Waiting (min) | =MAX(0,ROUND((D9-F9)*1440,0)) |
| H | Service (min) | Input |
| I | Departure | =MAX(F9,D9)+H9/1440 |
| J | Check | late, waiting or on time |
| K, L | Miles and minutes to the next stop | Inputs |
| M, N | Drop-off, pickup | Inputs |
| O, P | Load on leaving, load % | =O8-M9+N9, =O9/$F$3 |
Row 8 is the start, usually the depot. Its service time is the loading time, and its departure is the start time plus that. In the file the formulas are also wrapped in IF so empty rows stay empty.
Build it yourself, step by step
- List the stops in order. The first row is the start and the last row is the return to the depot. Each row holds the distance and drive time to the next stop. Take the figures from your maps app.
- Work out the arrival. Excel stores times as a fraction of a day. Minutes become a time when you divide them by 1440: the previous departure plus drive time divided by 1440. See calculating time for how Excel handles times.
- Wait for the window. A driver who arrives early can only unload when the window opens.
MAX(arrival,window_from)returns the later of the two, and the service time is added to it. - Flag late stops. The check compares the arrival with the end of the window. Because times are fractions, the template compares whole minutes:
ROUND((F9-E9)*1440,0)>0means late. More on ROUND. - Color the row. A conditional formatting rule with
=$J8="late"turns the whole row red. - Add the totals. Total distance is the sum of column K, drive time is the sum of the minutes divided by 1440 in the format
[h]:mm, and the route ends at the latest departure.
Load after every stop
At the start the vehicle carries everything that will be dropped off. Each stop lowers the load by the drop-off and raises it by the pickup, such as empty crates or returns. That is why a vehicle can be fuller halfway through the route than at the start. The template divides the load after each stop by the capacity and turns anything above 100% red.
Task How full is the vehicle after each stop? D2: at the depot it loads everything that will be dropped off, so the sum of the drop-offs. D3: load after the stop = load before minus drop-off plus pickup, used down to row 7. E2: load % = load divided by the capacity in H1, used for rows 2 to 7.
| A | B | C | D | E | F | G | H | I | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Stop | Drop-off | Pickup | Load on leaving | Load % | Capacity | 1000 | ||
| 2 | Depot | ||||||||
| 3 | Corner Bakery | 180 | 20 | ||||||
| 4 | Market Cafe | 120 | |||||||
| 5 | Park Hotel | 260 | 40 | ||||||
| 6 | Riverside Deli | 210 | |||||||
| 7 | Hill Farm Shop | 90 | 150 | ||||||
| 8 | |||||||||
| 9 |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
The capacity exists once at the top and needs $ in the formula; see absolute references.
Improving the order of stops
The template rates an order of stops; it does not search for one. In the example the driver waits 37 minutes at the hotel and then reaches the deli 10 minutes late. Swap the two stops, enter distances and drive times for the new order, and you see at once whether both windows work. Long waits and red rows are the places where a swap pays off.
Common mistakes
Adding minutes straight to a time
7:45 plus 18 is 18 days later in Excel, not 8:03. Divide minutes by 1440 or write TIME(0,18,0).
Drive time in the wrong row
In the template the drive time sits in the row where the drive starts. If you put it in the destination row, every arrival shifts by one stop.
Forgetting the return leg
Without a row for the return to the depot, the last distance and drive time are missing from the total distance and the end of the route.
Comparing times without rounding
An 8:30 that is the sum of several fractions can be a tiny bit larger than an 8:30 you typed. A direct comparison then reports a late stop that is not late.
The formulas in German Excel
| English | German |
|---|---|
| MAX, SUM, ROUND | MAX, SUMME, RUNDEN |
| IF, AND, OR | WENN, UND, ODER |
| COUNTIF, COUNTA, TIME | ZÄHLENWENN, ANZAHL2, ZEIT |
German Excel separates arguments with a semicolon. The German file is called "Tourenplanung" and uses kilometers and kilograms.
Which Excel versions does this work in?
Microsoft lists MAX for Excel 2016 through Microsoft 365, including Mac. SUM, IF, ROUND, COUNTIF, conditional formatting and sheet protection are in all current versions.
Frequently asked questions
Is the template free?
Yes. With a free account you download the Excel file, with no subscription and no payment details.
Does the template calculate distances or the best route?
No. You type in distances and drive times yourself, for example from a maps app. The template turns them into times, late warnings and load for the order you choose.
How do I plan a break?
As a row of its own without a time window, with the length of the break as its service time. The distance and drive time up to the break go in the row before it, and those from the break onward go in the break row. The template does not check drivers' hours rules.
Can I plan several routes?
Yes. Copy the Route sheet with a right-click on its tab and Move or Copy. Each copy works on its own.
Can I use kilometers instead of miles?
Yes. Distances are plain numbers, so just type kilometers. To rename the headings, unprotect the sheet first (Review > Unprotect Sheet, there is no password). The times and the load do not depend on the unit.
You can find every file on the Excel templates page.