Scrubs, in the episode "My Dream Job", during a day-dream sequence where JD imagines his dream job: being the "Chocolate King" and having an office where everything (including Turk, as his secretary) is made of chocolate.
In the 2005 film Madagascar, when Alex the Lion is shot with a tranquilizer dart, he has a psychedelic experience with the Sammy Davis, Jr. version playing throughout. First, popping versions of Gloria's head, Marty's black and white stripes, and Melman's giraffe spots, then, Marty and Melman dancing (Marty and Melman also dance in the end credits, but without the psychedelic experience colors and in different dances), and Gloria as the Statue of Liberty in New York City as the fireworks go bursted turns into a green fairy and performs a Tinkerbell-esque magic wand tap and a bunch of green glass stars flew across the screen (it was also seen in the closing credits, but it was orange instead of green and Gloria pops up from the bottom-left of a black background). (The song and the psychedelic experience is sped up after the Gold for Expedition scene ends with Alex saying, "Oh, man!").
Chris Evans originally played the song on his popular drive time BBC Radio 2 show every Friday afternoon. Once he replaced Terry Wogan on the breakfast show in January 2010, he has continued to play the tune every Friday morning, immediately following the 8:00 am news. The song was also used on a TV trailer, promoting his new breakfast show.
Danny Baker used the song extensively as a theme during his breakfast show for BBC London 94.9. He would reward listeners who phoned into the show and greeted him as Candy Man. During his time on the show he amassed a large number of existing versions of the song and commissioned guests such as Ray Gelato to produce new versions. He continued to use the song as a theme tune for his afternoon show on BBC London 94.9 until its cancellation.
In Gilmore Girls, after Rory loses her virginity to Dean she tells him very seriously that every time he hears the song she is about to play him he must think of her, before playing him 'The Candy Man' causing him to start laughing. Also, Taylor sings it in Season Three when he's announcing the opening of his Candy Shoppe.
In an episode of My Name Is Earl (season 1, episode 24), Randy Hickey finds a coin in a drain, which is accompanied by an instrumental rendition of the Candy Man.
"Who can take some bread crumbs, mix it up with soap, create a 20 rock to make the fiends think it's dope, the Dummy Man can"
In 2010, the song was featured in Fringe episode 2.20, "Brown Betty," sung by singing corpses in a "fairy tale" that Dr. Walter Bishop was telling Olivia Dunham's niece, Ella. The song was subsequently parodied by The Fringemunks as part of a medley that recapped this musical episode's storyline.
In the 2012 film Ice Age: Continental Drift, Manny sings the first two lines of the song to try and avoid hearing a pack of sirens.
South African biscuit company Bakers use the song in TV advertisements; though it changes the chorus to "The Bakers Man Can".
M&M Mars used the song from time to time as a jingle for M&M's: "The M&M's Man".
The Nurse Jackie episode "Candyman" features the song as a tribute during a eulogy for a deceased hospital staff member, who ran the newspaper/candy kiosk and was notable for his knowledge of each co-worker's favorite treat. A doctor starts out by reading the lyrics from a card, as though it were a poem, and the attendees slowly realize where they've heard it. Eventually, they all sing along.