You are using the formula Median = (Max + Min)/2.
This is not correct.
The Median is obtained by sorting out all the sample values, and taking the middle sample as the median.
Have a look at AH prices for Tender Wolf Meat for an example of how your computation is not working:
http://wow.allakhazam.com/db/price.html?witem=12208
Edited, Thu Jan 27 16:15:06 2005 by Esko