ThisCalculator

Everyday

Pivot Table Unique Count: How to Count Distinct

Updated · Standard formula, shown below

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered

To count unique values in a pivot table, use the “Distinct Count” option in the Value Field Settings, available when you add the same field to the Values area and change the calculation from “Count” to “Distinct Count.” This gives you the number of unique items in a field, excluding duplicates, without needing to add helper columns or change your source data.

Formula

The formula for average pace is:

pace = time / distance

Where:

  • time = total time taken, in minutes
  • distance = distance covered, in kilometers
  • pace = minutes per kilometer (min/km)

The speed formula is:

speed = distance / (time / 60)

Where speed is in kilometers per hour (km/h). The division by 60 converts minutes to hours.

Worked Example

Using the default values from the calculator:

  1. Time = 50 minutes
  2. Distance = 10 km
  3. Pace = 50 / 10 = 5.00 min/km
  4. Speed = 10 / (50 / 60) = 10 / 0.8333 = 12.00 km/h

So with a 50-minute run over 10 km, your average pace is 5 minutes per kilometer, and your average speed is 12 km/h.

When to Use This Calculator

Use this calculator when you want to know your average pace for a run, walk, or bike ride, or when you need to convert between pace and speed. Runners often use pace to plan training, while cyclists and drivers use speed. The calculator works for any distance and time combination, as long as you use consistent units.

How to Read the Result

The pace result tells you how many minutes (and decimal parts) it takes to cover one kilometer. A lower pace means faster. Speed tells you how many kilometers you cover in one hour. A higher speed means faster. For example, a pace of 5.00 min/km is the same as 12.00 km/h. If you prefer miles, convert distance to miles and time to minutes, then the pace will be in minutes per mile.

Common Mistakes

  • Using different units: If you enter time in hours and distance in kilometers, the pace will be in hours per kilometer, which is unusual. Always convert time to minutes for pace.
  • Mixing pace and speed: Pace is time per distance, speed is distance per time. They are reciprocals (with unit conversions). Do not confuse them.
  • Rounding too early: Round only the final result, not intermediate steps, to avoid errors.

Limits of the Formula

The formula assumes a constant speed throughout the entire distance. In reality, your pace varies with terrain, wind, and fatigue. The result is an average, not a real-time measurement. Also, the calculator does not account for elevation gain or loss, which can make the same pace feel harder or easier.

Frequently Asked Questions

How do I convert pace to speed?

Divide 60 by your pace (in minutes per kilometer) to get speed in km/h. For example, a 5 min/km pace gives 60 / 5 = 12 km/h. To convert speed to pace, divide 60 by your speed.

What is a good running pace?

A “good” pace depends on your fitness level, age, and the distance. A beginner might run at 8 min/km, while an elite runner might do 3 min/km for a marathon. This calculator helps you measure your own pace, not compare to others.

Can I use this for cycling?

Yes, the same formula applies to any moving activity. Enter your cycling time and distance, and you will get your average pace and speed. Many cyclists prefer speed over pace, but both are useful.

Does the calculator work for miles?

Yes, if you enter distance in miles and time in minutes, the pace will be in minutes per mile. The speed will be in miles per hour, because the formula divides by 60 (minutes per hour) and uses the same units for distance.

Why is my pace not matching my watch?

GPS watches often show current pace, which fluctuates, while this calculator gives an average over the whole distance. Also, watches may use different algorithms for distance, especially indoors or in tunnels. The calculator is accurate for the distance and time you enter.

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.