Mark Ramprakash moved up another place on the all-time list of first-class century-makers but Surrey could not clinch victory on the final day of their LV County Championship match against Derbyshire at Whitgift School.

They were frustrated by a batsman who made his debut in county cricket only a month ago, with Wayne Madsen scoring a dogged 108 not out as Derbyshire finished on 232 for five to earn a draw.

The 39-year-old Ramprakash, touted in some circles for an England return for the final Test at The Oval, his home ground, scored 134 not out, an innings made off 150 balls with 11 fours and three sixes.

It was the 108th first-class century of his distinguished career and moved him level with Pakistan's Zaheer Abbas in 16th place on the all-time list.

Starting the day 76 not out, there was barely a moment of doubt over whether he would make it to three figures as he and Usman Afzaal piled up a fourth-wicket partnership of 156 in 25 overs.

It seemed Afzaal too would help himself to a hundred, with Surrey pushing towards a declaration, but he provided Derbyshire with their sole wicket of the morning when he skied a slog-sweep at Graham Wagg's left-arm spin and was caught at mid-on for 85.

That left Surrey on 308 for four and, after a final flurry of boundaries from Ramprakash, the batsmen were called in at 320 for four, setting Derbyshire 349 to win and leaving themselves a minimum of 77 overs in which to take 10 wickets.

Surrey made the perfect start to their pursuit when Derbyshire captain Chris Rogers flicked the first ball of the innings, from Andre Nel, down the leg side for wicketkeeper Jon Batty to take the catch.

When Garry Park was caught at backward short leg in the final over before lunch to make it 30 for two, any Derbyshire hopes of a successful run chase were lost and Surrey were hot favourites for the win.

A third-wicket partnership of 90 between Madsen and Greg Smith gave Derbyshire some breathing space but when Smith cut Pedro Collins straight to Chris Schofield at point and fell for 49, the pressure was on again.

Wavell Hinds flicked loosely at the third ball of Afzaal's first over of left-arm spin to give Surrey fresh heart at 153 for four shortly before tea and Nel came out firing after the interval with a fearsome five-over blast.

It brought the former South African Test bowler the wicket of Dan Redfern and he gave Freddie Klokker a torrid time.

Klokker survived to help Madsen see it through to the close with 32 not out, in an unbroken stand of 62 in 27 overs.

Madsen, who played 24 first-class matches in South Africa before hitting an unbeaten 170 on his debut for Derbyshire at Cheltenham last month, showed wonderful patience to complete his second century for the county off 213 balls with 13 fours.