The Office is a beloved mockumentary-style TV show that aired for over 200 episodes. It was a huge heartbreak to fans once the show was taken off Netflix and moved to NBC's Peacock streaming service. Over the course of its nine seasons, The Office has had an ever-changing cast.

RELATED: The 10 Most Disliked Characters Of The Office 

The majority of Dunder Mifflin's original employees make it to The Office's finale. However, notable actors and celebrities make guest appearances throughout the show's run. There are so many guest stars that make a cameo on The Office, it can be difficult for fans to keep track.

10 Idris Elba Plays Charles Miner In The Office

Idris Elba guest stars on The Office

Idris Elba is known for his role as John Luther in the BBC series Luther and Rufus Buck in the latest western film, The Harder They Fall. Before Elba was voted Sexiest Man Alive in 2018, he actually guest-starred for six episodes on The Office.

RELATED: 10 Classic Sitcoms To Watch On Peacock

Elba plays Dunder Mifflin's Vice President, Charles Miner, in the fifth season. While Charles is very discouraging of Michael's immature antics around the office, Elba frequently pranked the cast and joked about his name's pronunciation.

9 Evan Peters Plays Michael's Nephew On The Office

Evan Peters guest stars on The Office

Before becoming a fan-favorite on American Horror Story, Evan Peters played Michael Scott's half-nephew. Peters appears as the lazy Luke Cooper in the seventh season. Michael hires his half-sister's son as an assistant, but viewers quickly realize how incompetent Luke truly is.

Luke messes up errands on purpose and becomes a huge pest to the office workers. One example is how he annoys the Dunder Mifflin office with a laser pointer by pointing it at inappropriate places. His improper tomfooleries eventually cause Michael to yell at him, and Luke angrily quits.

8 Will Arnett Guest Stars On The Office

Will Arnett guest stars on The Office

Will Arnett plays Fred Henry in Search Committee of The Office. He is an applicant for the regional manager position at Dunder Mifflin-Sabre. Fred previously worked as a weather predictor in the Navy while stationed in China.

One of his biggest regrets is sending soldiers to a Mariah Carey concert without coats, because he presumed it would be 70 degrees. Jim doesn't believe Fred when he says he could double their sales. Fred is put on the spot and can't even remember the name of the position or company he applied to work at.

7 Jim Carrey Plays Another Regional Manager Applicant

Jim Carrey guest stars on The Office

Jim Carrey makes a brief cameo as another regional manager applicant in Search Committee. Carrey plays Finger Lakes Guy in one of the more confusing roles on The Office. Carrey's character states he lied to his family and said he was on a hike in order to be interviewed for the regional manager position.

He says people disappear in Finger Lakes, which is a region in New York, and needs to go back for his family not to worry. A reason why this is mind-boggling for fans is that Phyllis exclaims, "Look, Jim Carrey walked in!" in an earlier season. Did they not recognize him?

6 Ray Romano Plays Merv Bronte On The Office

Ray Romano guest stars in The Office

Ray Romano, a famous stand-up comedian known for his role in Everybody Loves Raymond, also appears on the Search Committee episode of The Office. Romano plays Merv Bronte, yet another applicant for the regional manager position at Dunder Mifflin-Sabre. The evil Robert California tricks Merv into performing terribly in his interview.

RELATED: The Office: 10 Times Michael Went Too Far

Merv acts unprofessional by eating and requesting relocation while being asked questions by Jim Halpert. Merv later realizes he was tricked and replies, "I'm afraid of being happy."

5 Will Ferrell Temporarily Replaces Michael Scott On The Office

Deangelo Vickers sitting in Michael Scott's chair in The Office

Renowned comedian and actor Will Ferrell guest-stars in the seventh season of The Office. Ferrell plays Deangelo Vickers, the replacement branch manager, after Michael moves to Colorado with Holly. If viewers think Michael is childish, Deangelo is on a whole different level. Dundler Mifflin employees recognize early how awful it will be to work with him when Deangelo attacks the cake at Michael's going away party.

Deangelo considers himself a skilled juggler, even though the juggling balls are invisible. This impresses several employees, but annoys others. Deangelo winds up in the hospital after a basketball hoop collapses on him. It is presumed Deangelo is brain dead.

4 Dakota Johnson Replaces Kevin On The Office

Dakota Johnson guest stars on The Office

Dakota Johnson makes a brief cameo in the show's finale as the replacement for Kevin after Dwight fires him. The finale for The Office raked in around six million viewers. Johnson, who plays a character named Dakota, appears in only two scenes of The Office. Dakota is seen flirting with Clark Green at the end of Finale.

Dakota also asks Oscar about the confusing marks on Kevin's notes, and Oscar replies, "It's a keleven." A Keleven is a fictional number used by Kevin to balance the accounts. Fans weren't surprised when he got fired.

3 Josh Groban Plays Andy's Brother On The Office

Josh Groban guest stars on The Office

The Office features guest appearances by not only actors, but also singers. Josh Groban has four multi-platinum albums and plays Andy Bernard's younger brother on the show. Groban stars as Walter Bernard Jr. and appears in Garden Party in the eighth season.

It is evident to viewers that Walter is the favorite child because he was renamed at six years old. His parents believed he deserved the name more than Andy. Walter outshines Andy in a father-son duet, but later becomes an alcoholic. Walter and Andy eventually make up and put the past behind them.

2 Amy Adams Plays Katy Moore On The Office

Amy Adams guest stars on The Office

Amy Adams, known for several movies like Enchanted and Catch Me If You Can, is one of the earlier guest stars on The Office. Adams plays Kat Moore, a handbag salesman in Hot Girl. Katy is disinterested in Michael and Dwight's advances, and Jim woos her by driving her home.

RELATED: 10 Harsh Realities Of Being A Sitcom Protagonist 

It is evident that Katy and Jim are dating during the second season of The Office. Ryan tries to ask out Katy when he learns that Jim and her are no longer speaking. However, Jim disapproves and brings her to the booze cruise as a date. The pair later break up after Jim finds out Pam and Roy's wedding date.

1 Stephen Colbert Plays Broccoli Rob On The Office

Stephen Colbert guest stars on The Office

Stephen Colbert is known for hosting his late-night television show, The Late Show With Stephen Colbert. Colbert stars as Robert "Broccoli Rob" Blatt during Here Comes Treble in the ninth season of The Office. Broccoli Rob is Andy Bernard's former friend and classmate from Cornell.

Broccoli Rob and Andy were also in an a capella group called Here Comes Treble. Colbert's character has been briefly mentioned across different seasons. One of which includes Andy being jealous of how successful Broccoli Rob is in the seventh season.

NEXT: The Office: 10 Fan Theories That Make Too Much Sense