Sample Data
This data shows time in hours and speed in kilometers per hour for a car trip.
| Cell | Value |
|---|---|
| A1 | Time (hours) |
| B1 | Speed (km/h) |
| A2 | 1 |
| B2 | 60 |
| A3 | 2 |
| B3 | 70 |
| A4 | 3 |
| B4 | 80 |
This data shows time in hours and speed in kilometers per hour for a car trip.
| Cell | Value |
|---|---|
| A1 | Time (hours) |
| B1 | Speed (km/h) |
| A2 | 1 |
| B2 | 60 |
| A3 | 2 |
| B3 | 70 |
| A4 | 3 |
| B4 | 80 |
=SUMPRODUCT(B2:B3, A3:A4 - A2:A3)A B 1 Time Speed 2 1 60 3 2 70 4 3 80 References: - B2:B3 speeds for intervals - A3:A4 and A2:A3 for time differences
A B C 1 Time Speed Distance 2 1 60 3 2 70 4 3 80 130 Cell C4 shows total distance = 130 km