Andrew Baines Bernard is a fictional character from the NBC comedy television series The Office, portrayed by Ed Helms. He is introduced in Season 3 as the Regional Director in Charge of Sales at the Stamford branch of paper distribution company, Dunder Mifflin. When Jim Halpert transfers here and ultimately, the Stamford branch merges with the Scranton branch later in the season. He then becomes Regional Manager at the Scranton branch, courtesy of Robert California, in the eighth season following the departure of Michael Scott, although he is temporarily fired and replaced by Nellie Bertram before his reinstatement by new CEO David Wallace. Throughout the ninth season, Andy's relationship with Wallace deteriorates from Andy's lack of focus and professionalism, eventually culminating in Andy's firing by Wallace.