Turkey secured automatic qualification for Euro 2016 in dramatic fashion as Selcuk Inan's last-minute goal sank Iceland.
Inan scored from a superb free-kick to clinch a 1-0 win which ensures Turkey will travel to France next summer as the best third-placed team in qualifying.
Norway and Ukraine both had a point more than Turkey from their 10 games but the rules of the qualifying are that the results against the sixth-placed sides are discounted, which ensured Turkey's passage.
Their hopes looked to be over when Gokhan Tore was sent off in the 78th minute but Inan's last-gasp goal earned them the win over Iceland and, with Kazakhstan beating Latvia 1-0 courtesy of a 65th-minute Islambek Kuat goal, also saw them pip Hungary to finish as the best third-placed team.
The Netherlands finished fourth in Group A after a 3-2 defeat to the Czech Republic, meaning they will play no part in Euro 2016.
Hungary, who were not in action, go into the play-offs.
There was also drama in Group H, where Italy fought back from a goal down to beat Norway 2-1 and clinch top spot with Croatia leap-frogging the Norwegians into second with a 1-0 win over Malta.
Norway were on course to finish top themselves when Alexander Tettey gave them a 23rd-minute lead in Rome, but late strikes from Alessandro Florenzi (74) and Graziano Pelle (82) saw the already-qualified Azzurri win the group.
And to add to Norway's disappointment, they dropped to third and into the play-offs after Croatia - having started the day in third - beat rock-bottom Malta with a first-half goal from Ivan Perisic.
In Group B, Belgium and Wales finished one-two following respective homes wins over Israel and Andorra, with Bosnia-Herzegovina taking third place behind them.
Belgium, who like Wales had already secured their berth in France, were 3-1 winners over Israel thanks to goals from Dries Mertens, Kevin De Bruyne and Eden Hazard. The result also sent Belgium to the top of the FIFA rankings.
Israel pulled a late goal back through Tomer Hemed but their hopes of a play-off berth were over, with Bosnia-Herzegovina sealing that spot with a 3-2 win over Cyprus in Nicosia.
Haris Medunjanin (two) and Milan Djuric were on the mark for the visitors with Constantinos Charalambidis and Nestoras Mitidis responding for Cyprus.
Also on Tuesday, Bulgaria beat Azerbaijan 2-0 in Group H with efforts from Mihail Aleksandrov and Dimitar Rangelov.