Hosts Scotland will play top seeds Malaysia and England will take on surprise quarter-finalists Sri Lanka in the last eight of the Commonwealth Games team event.
England rubber-stamped their place alongside the Scots in the knockout stages at the Emirates Arena by completing formalities in their group with a 5-0 rout of Mauritius on Saturday morning.
They were then drawn against Sri Lanka, who did not even realise they had qualified for the quarter-finals as one of the best runners-up until just before the draw was made.
Sri Lanka finished second to Malaysia in the competition’s only three-team group after losing to the powerhouse nation 5-0 in their last fixture.
With the other five groups containing four teams - in which results against bottom teams would be discarded - they then faced an anxious wait while recalculations were made to see if they had gone through.
In the end, with matches won and games difference level, it came down to points difference and the Sri Lankans’ superior score of plus 50 edged New Zealand’s plus 26.
Sri Lanka’s players and officials shouted with joy when sheets with details for the quarter-final draw were handed round.