A very late goal with this Scottish Cup tie apparently heading for a replay saw the home side through to a home game with former league side East Stirlingshire.
There was little between the teams in a closely fought first half but Formartine had the better of the play after the break and if there was to be a winner then it always looked likely to be them as the game headed for stalemate.
The home side looked confident from the kick off but it was Turriff who took the lead with their first foray forward as they took a 6 th minute lead, Miller with a first time snap shot 8 yards out as the ball bounced around the penalty area.
Seven minutes later it could have been two as a Ross cross from the right just failed to make contact with the boot of the onrushing Miller.
Formartine were struggling to create a threat themselves and it took until the 20 th minute when a ball over the top saw Barbour run clear but his ferocious shot was beaten away by keeper Main.
After 32 minutes Barbour headed over after the ball was headed on to him following a corner but two minutes later it was all square, a free kick to the back post where Anderson cushioned the ball to Smith to score from six yards.
At the other end in stoppage time keeper McDonald pulled off a magnificent reflex save from a close range Ross effort.
The second half belonged to the home side and they should have been in front before the eventual winner.
They went close nine minutes after the restart, a long ball forward into the penalty area but Rodger’s shot was taken on the stretch and gathered by Main.
McPhee, who was having a quite game by his standards headed a Smith left wing cross centimetres wide the Ferries was equally close with a daisy cutter from 20 yards.
A Barbour shot from an angle was well blocked low down by Main as Formartine looked by the more likely.
With the tie heading for a replay at The Haughs we had a late dramatic winner in the final minute, Rodger setting up the deadly McPhee to clinically finish and send his side through.