Match ends, Derby County 3, Yeovil Town 2.
A stoppage-time header from Chris Martin kept Derby in the hunt for automatic promotion as the Rams came from 2-0 down to beat Yeovil.
John Lundstram's low 20-yard shot and Ishmael Miller's speculative effort put the visitors in control at the break.
Steve McClaren's side responded with a header from Patrick Bamford but they still trailed with three minutes left.
Craig Bryson slotted home the leveller and the points were secured when Martin headed in Bryson's free-kick.
Derby had only won once since their seven-game winning streak came to an end on Boxing Day but this win keeps them four points behind second-placed QPR.
Yeovil stay bottom after a fifth defeat in their last six games, but Gary Johnson's side came close to an upset.
Derby had hit the post through a deflected shot from Simon Dawkins when the Glovers took the lead when on-loan Everton youngster Lundstram surged forward and drove a low right-footed shot into the bottom corner from 20 yards.
The Rams had strong claims for a penalty waved aside when Martin appeared to be shoved and Yeovil scored again two minutes later when Lundstram found former Manchester City man Miller who brushed off Richard Keogh to fire a cross-shot inside the far post.
Bamford stooped to head in Dawkins's cross after the restart and then hit the post as Derby looked like being frustrated.
The hosts managed 36 shots on goal and finally levelled when Will Hughes teed up Bryson, and Bryson then provided the winner with a cross which Martin flicked home.
Derby head coach Steve McClaren:
"With all the successful teams, it's all about the last 10 minutes, you wear teams down and that's basically what we did tonight. We just ground them down and kept going and going.
"We got shots in and put balls into the box and kept creating chances and eventually we got our reward. It was the 85th minute when we got the winner against Brighton and the 84th minute when we equalised at Blackburn on Saturday.
"Tonight it was the 89th minute and injury time when we turned the game around so that's the pleasing thing for me that the team keep going and finish strongly."
Yeovil boss Gary Johnson:
"The least I say the better because I am as upset as everybody else. We played to a plan and got a couple of decent goals but you know they are going to come at you.
"They went 4-2-4 and unfortunately we didn't have enough nous to deal with it at that time. We kept giving the ball away and giving them runs of attacks. We kept giving it away and you can't do that against good teams.
"We came so close but it was a stupid free-kick to give away and it's a shame because there were a few out there who put a lot into their game."
- 14EustaceSubstituted forWardat 45'minutes
- 19HughesBooked at 58mins
- 35BamfordSubstituted forRussellat 89'minutes
- 32DawkinsSubstituted forSammonat 79'minutes
- 3McAllisterBooked at 19mins
- 23GrantSubstituted forDawsonat 68'minutes
- 4EdwardsBooked at 11mins
- 13MooreBooked at 90mins
- 27MillerSubstituted forUpsonat 80'minutes
- 19RallsBooked at 45mins
- Jeremy Simpson
- Shots on Target
Second Half ends, Derby County 3, Yeovil Town 2.
Craig Forsyth (Derby County) wins a free kick in the defensive half.
Foul by Kevin Dawson (Yeovil Town).
Goal! Derby County 3, Yeovil Town 2. Chris Martin (Derby County) header from the left side of the six yard box to the top right corner following a set piece situation.
Johnny Russell (Derby County) wins a free kick on the left wing.
Foul by Edward Upson (Yeovil Town).
Kieffer Moore (Yeovil Town) is shown the yellow card for a bad foul.
Johnny Russell (Derby County) wins a free kick in the attacking half.
Foul by Kieffer Moore (Yeovil Town).
Foul by Chris Martin (Derby County).
Byron Webster (Yeovil Town) wins a free kick in the defensive half.
Foul by Jake Buxton (Derby County).
Edward Upson (Yeovil Town) wins a free kick in the defensive half.
Substitution, Derby County. Johnny Russell replaces Patrick Bamford.
Attempt missed. Patrick Bamford (Derby County) right footed shot from the right side of the box is high and wide to the left.
Attempt blocked. Jamie Ward (Derby County) right footed shot from outside the box is blocked. Assisted by Richard Keogh.
Goal! Derby County 2, Yeovil Town 2. Craig Bryson (Derby County) right footed shot from outside the box to the bottom left corner. Assisted by Will Hughes.
Corner, Derby County. Conceded by Shane Duffy.
Attempt blocked. Andre Wisdom (Derby County) right footed shot from the right side of the box is blocked.