We present a determinantal formula for the number of spanning trees of a complete multipartite graph containing a given spanning forest F. Our approach relies on the Generalized Matrix Determinant Lemma and Jacobi's formula for the derivative of a determinant. This work generalizes known results for complete bipartite graphs and offers an algebraic perspective on the problem.