Credit: Jason Merritt/Getty Images

That Jim Halpert is such a charmer!

In a Wednesday appearance on The Ellen DeGeneres Show, John Krasinski opened up about his "amazing" marriage to actress Emily Blunt.

"It's one of those things where, as soon as you meet someone, you know," the 31-year old actor, who married Blunt, 28, in July 2010 said.

"You knew right away when you met her?" DeGeneres, 53, asked.

"Yes," The Office star answered emphatically. So did Blunt know instantly Krasinski was her future hubby? He quipped: "She says she [knew]! So I'm going to take that as a yes."

"I wasn't really looking for a relationship… And then I met her," he explained. "I was so nervous, and I was like 'I think I'm going to fall in love with her,' and as I shook her hand, I went, 'I like you.'"