Pakistan beat Bangladesh by 94 runs at Lord's for a fourth straight win hours after it missed out on the Cricket World Cup semifinals.
Going to the last four instead is New Zealand, a team Pakistan beat by six wickets last week.
Pakistan secured fifth place and finished on 11 points, the same as fourth-placed New Zealand. Both team had five wins but the Black Caps advanced with a much superior net run-rate.
To reach the semis, Pakistan had to win by an unprecedented score. It didn't take on the challenge and finished on 315-9 with Imam-ul-Haq scoring a 100-ball 100 and Babar Azam 96 in 98. The updated maths meant, to advance to the semis, Pakistan had to bowl out Bangladesh for seven or less, and that equation died in the second over of the chase.