Andover had the lead and a hot goaltender Thursday, but Eden Prairie came back to avoid an upset in the Class 2A girls’ hockey quarterfinals.

Charly Dahlquist scored the tying and go-ahead goals as No. 3 seeded Eden Prairie advanced with a 4-2 victory at Xcel Energy Center.

Maddie Rooney made 26 saves for Andover (16-10-3), which is making its first state tournament appearance.

Huskies fans roared when Abbie Turpin scored to take a 2-1 lead late in the second period. But Dahlquist answered with a goal 58 seconds later.

At 1:40 of the third period, Dahlquist sent a shot over Rooney’s shoulder and into the net’s upper left corner, giving Eden Prairie (21-7) its first lead.

“[Rooney] definitely knows where she is in the net, and there’s not a lot of space to score,” said Dahlquist, the daughter of former North Stars defenseman Chris Dahlquist. “So I was surprised on that goal. I usually don’t go top shelf.”

Kate Rydland added an empty-net goal for the Eagles, who will play No. 2 seeded Hill-Murray in Friday night’s semifinals. The Pioneers defeated Eden Prairie 5-0 back in November, but Eagles coach Jaime Grossman said that was atypical.

“Every time we play them, it’s a one-goal game,” he said. “We scrimmaged them late in the year. We both had a bye, they came to us, and it was a back-and-forth game. To me, it’s going to be a game like this [close win over Andover].”

Joe Christensen