I have to find the median of 0, 1, 2, 3, 4, 5, 6, 7, 8. There is no data in 5 or 7. Would the median still be 4?

Thanks for your help

There are 9 values, so the median is the 5th value, or 4.

No idea when you say that there is no data in 5.

If these numbers are like bins containing data, then you have to count the values in each bin, and then find the middle value.