Let $(X, Y)$ be distributed as a multivariate normal with parameters
$$ \mu = \begin{bmatrix} \mu_X \\ \mu_Y \end{bmatrix} \qquad \Sigma = \begin{bmatrix} \sigma_X^2 & \sigma_{XY} \\ \sigma_{XY} & \sigma_Y^2 \end{bmatrix}. $$
I would like to calculate $E(X | y_1 < Y < y_2)$, where $y_1$ and $y_2$ are constants.
From Wikipedia, I have managed to work out that $$ E(X | Y > y_1) = \mu_X + \frac{\sigma_{XY}}{\sigma_Y} \left[\frac{\phi\left(\frac{y_1 - \mu_y}{\sigma_Y}\right)}{1 - \Phi\left(\frac{y_1 - \mu_y}{\sigma_Y}\right)}\right]\\ E(X | Y < y_2) = \mu_X - \frac{\sigma_{XY}}{\sigma_Y} \left[\frac{\phi\left(\frac{y_2 - \mu_y}{\sigma_Y}\right)}{\Phi\left(\frac{y_2 - \mu_y}{\sigma_Y}\right)}\right] ,$$ where $\phi(\cdot)$ and $\Phi(\cdot)$ are, respectively, the p.d.f. and the c.d.f. of the Normal distribution. I could not figure out how to calculate $E(X | y_1 < Y < y_2)$, though.
I have searched for an answer in similar posts from the Stack Exchange network, but I couldn't get a clue from them that would solve this issue. For the record, here are some of them: