Alastair Cook ton, Simon Harmer sixes help Essex to tie that eliminates Lancashire
Needing 22 off final over, Harmer hits three sixes, scrambled two levels scores on last ball
Essex 250 for 8 (Cook 110, ten Doeschate 45, Harmer 23*) tied with Lancashire 250 for 6 (Croft 93, Lavelle 52)
A century from former England Test captain Alastair Cook helped secure Essex Eagles' progress into the knockout stages of the Royal London Cup following an extraordinary tie with Lancashire at Emirates Old Trafford.
Essex, who were eight wickets down, had required 22 off the last over to win before Simon Harmer stepped up and hit three successive straight sixes off Steven Croft with a scrambled two off the last ball leaving the scores level.
The result meant the visitors finish second in Group 2 behind leaders Durham and will play a home eliminator against the third-placed team in Group 1. It was heartbreak for Lancashire, who had to win to qualify. They dropped to fourth, with their total of 250 for 6 always looking a shade under par.
The hosts endured a stodgy start with Jack Plom and Ben Allison's accuracy justifying Essex's decision to field first. The opening pair had battled their way to 49 when Harmer struck in the 16th over to remove Luke Wells with a beautifully flighted turner for 26 which brought Croft to the middle.
Together with Josh Bohannon, the veteran batsman took the game to the visitor's bowlers before the opener scooped a full toss from Ryan ten Doeschate straight to Harmer at mid off for 34.
When a frenetic Rob Jones was caught soon after for three thanks to a one-handed effort by Josh Rymell off ten Doeschate it looked like the innings could go either way until the incoming George Lavelle had other ideas.
The 21-year-old quickly took a liking to Aron Niijar and at one stage deposited the unfortunate spinner into the balcony of the famous Emirates Old Trafford pavilion for a massive six as he and Croft built an entertaining century partnership for the fourth wicket.
By the time Lavelle holed out to Paul Walter on the leg side boundary for 52, Lancashire had progressed to 203 and with Danny Lamb keen to keep up the momentum with a flurry of innovative shots the host's were creeping towards respectability.
Croft eventually fell seven short of his century hitting out in the penultimate over with Lamb dismissed three balls later as Lancashire closed on 250 for six.
In reply Cook and Josh Rymell had eased their way to 44 off 8.3 overs when the 20-year-old edged Baily to Wells at slip, before Essex suffered a severe wobble with Morley trapped in front by Jack Morley for 19 and Feroze Khushi run out by Bohannon for 10 following a mix up with Cook.
When Paul Walter was dismissed by a stunning one-handed catch at point from Taylor Cornall, Essex looked in trouble, but with Cook joined by ten Doeschate, the experienced pair were able to add 89 runs for the fifth wicket and take the Eagles to what looked a secure position at 212 for 5 with 33 balls left when the Dutch international was out for 45.
But as scoreboard pressure increased, the Eagles plummeted as Cook (110) and Adam Wheater fell in successive deliveries to Croft's off spin and Nijjar skied Wells to Liam Hurt off his first ball before Harmer's heroics ensured a thrilling finish.