Will Ferrell to appear in 'The Office'

NBCs popular show, The Office, will have funny man, Will Ferrell, guest star in some of this season's episodes.

Will Ferrell poses at the premiere of the film "Burlesque" in Los Angeles, Nov. 15, 2010. Ferrell will play a visiting branch manager over an arc of several episodes on "The Office." NBC announced the casting Wednesday, with the promise that Ferrell's character will be "just as inappropriate" as Steve Carell's Michael Scott.

Chris Pizzello/AP/File

January 27, 2011

Will Ferrell is coming to "The Office."

Ferrell will play a visiting branch manager over several episodes.

NBC announced the casting Wednesday with the promise that Ferrell's character will be "just as inappropriate" as Steve Carell's Michael Scott.

IN PICTURES: Conan O'Brien

Carell's farewell is expected four episodes before the season finale of "The Office."

In preparation of his exit, NBC is bringing in high-profile guests, including "The Office" creator Ricky Gervais, reprising his role as David Brent.

Gervais will make a cameo in Thursday's episode.

IN PICTURES: Homer Simpson