How did Michael become manager?

Is there an episode that explains how Michael actually got to be manager?