What is the mathematical forumula for finding the median of a odd number of values

Sorry if this is too basic a question to ask here, but thought I'd ask it anyway. :p

What is the mathematical formula for finding the median (i.e. the number in dead center) in an odd number of values? You can't divide the sum by 2, because that will give you one less than the center and a half. Do I just add an half after dividing by 2, or is there a better way?

I tried Googling already, but couldn't find the answer.

EDIT: Yeah, the above seems to work...