Derbyshire pipped Leicestershire to the fourth and last quarter-final spot in the Royal London One-Day Cup thanks to a 53-run victory over Gloucestershire at Derby.
Billy Godleman's 96 and a half-century from Wayne Madsen helped Derbyshire reach 271 for seven and the scoreboard pressure eventually told as Gloucestershire - who were already through to the last eight, where they will face Kent - collapsed to 218 all out.
Chris Dent and Jack Taylor contributed half-centuries to the chase but David Wainwright's three for 45 and two wickets apiece for Mark Footitt and Tony Palladino helped Derbyshire to victory.
That confirmed fourth place in Group A and a quarter-final tie with Group B winners Nottinghamshire after midlands rivals Leicestershire, who had occupied the final qualifying position at the start of the day, succumbed to an eight-wicket thrashing at Lancashire.
The Red Rose had just one victory in their previous seven matches but restricted their visitors to 184 all out after 43.1 overs, with Kabir Ali taking three wickets and Tom Bailey, Tom Smith and Steven Croft two apiece.
Leicestershire, for whom Josh Cobb top-scored with 58, were effectively out of the game following a 97-run first-wicket partnership, with openers Tom Smith and Luis Reece both hitting 54, before Karl Brown's 49 not out sealed victory for Lancashire after 30 overs.
Adil Rashid produced the best figures of his career in limited overs matches as Yorkshire sealed top spot in Group A and a tie against Durham at Headingley with a six-wicket win over an under-strength Hampshire at the Ageas Bowl.
Leg-spinner Rashid finished with five for 33, the last four coming in 15 balls, as Hampshire were bowled out for 172 in 39 overs, with Yorkshire completing their chase with a whopping 127 balls to spare.
Essex ensured a home tie against Warwickshire next week as they finished runners-up to Yorkshire following a tense four-wicket victory over Northamptonshire at Wantage Road.
A masterful 113 off 93 balls from David Willey lifted Northants, who would have qualified for the last eight had Derbyshire and Leicestershire both lost, to 311 all out, but strong top-order contributions from Mark Pettini (88), Tom Westley (62) and Ravi Bopara (61) got Essex off to a bright start and they overhauled the target with three balls to spare.