EN
We prove an explicit formula of Atkinson type for the error term in the asymptotic formula for the mean square of the product of the Riemann zeta-function and a Dirichlet polynomial. To deal with the case when coefficients of the Dirichlet polynomial are complex, we apply the idea of the first author in his study on mean values of Dirichlet L-functions.