The median for grouped data is found by using the formula:
L + ( ) h
The median for grouped data is formed by l+(N2−CFf)×h.
Where l is the lower class limit of the median class, N is the total number of observations, CF is the cumulative frequency of the class preceding the median class, f is the frequency of the median class and h is the class size.