Arrange the data in ascending order
Count the total number of observations
If the number of observations is odd, the median is the middle value
If the number of observations is even, the median is the average of the two middle values
Identify the middle position using ((n+1)/2) for odd (n)
Identify the two middle positions using (n/2) and ((n/2)+1) for even (n)
Take the value at the middle position for odd data sets
Take the mean of the two middle values for even data sets
