Measure time alongside
Calculate how long a vessel occupied a berth across midnight.
Enter =DATE(2026,12,1)+TIME(18,30,0) in A2 and =DATE(2026,12,2)+TIME(8,0,0) in B2. Use the same time zone.
=ROUND((B2-A2)*24,1)Excel stores times as fractions of a day. Multiply the date-time difference by 24 to get hours.
Result 13.5 hours
Total cargo by discharge port
Tally tonnes for one destination across the stowage summary.
Enter Singapore, Busan, Singapore, Rotterdam in A2:A5 and tonnes 80, 120, 45, 70 in B2:B5.
=SUMIF(A2:A5,"Singapore",B2:B5)The matching port appears twice. SUMIF adds 80 t and 45 t.
Result 125 tonnes
Count deliveries made on time
Compare each delivery date to its own promised date.
For rows 2 to 4 enter promised dates 4, 7, 10 December 2026 in A and completed dates 3, 8, 10 December 2026 in B, as Excel dates.
=SUMPRODUCT(--(B2:B4<=A2:A4))Use rows for completed deliveries only. The comparison counts early and same-day deliveries.
Result 2 of 3 deliveries
How to Calculate Hours Worked in Excel (Midnight Span)
Sum By Category Group in Excel
OTD Vs OTIF - Simplified with Excel Calculations - On Time Delivery & On time in Full in Excel
Practice workspace
Measure time alongside
Calculate elapsed berth time in hours, rounded to one decimal place. Both timestamps use the same time zone.
| A | B | |
|---|---|---|
| 1 | ||
| 2 |
Show example formula
=ROUND((B2-A2)*24,1) Total cargo by discharge port
Total the cargo tonnage scheduled for discharge in Singapore.
| A | B | |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 |
Show example formula
=SUMIF(A2:A5,"Singapore",B2:B5) Count deliveries made on time
Count deliveries completed on or before their promised date. Compare each completed date with the promise on the same row.
| A | B | |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 |
Show example formula
=SUMPRODUCT(--(B2:B4<=A2:A4)) Lesson quiz
Answer three questions to see your level in this lesson.
