The median is the middle value of a dataset when arranged in order (ascending/descending). For odd number of observations, there is exactly one middle value.
The even median formula is used when a dataset has an even number of values. Since there is no single middle value, the median is the average of the two middle values.