The Office aired for 9 seasons from 2005 to 2013. Seth Rogen auditioned for the role of Dwight but lost the part to Rainn Wilson. Oscar Nunez, who plays Oscar Martinez, kept his other jobs when he first joined the cast as he didn't believe the show would succeed. When the Stamford and Scranton branches merged on the show, Ed Helms was meant to be written off but was so funny they made him a series regular instead.