The "Transformers" star will appear in the New Line Cinema ensemble comedy about couples and singles whose lives intertwine one New Year's Eve in New York.
Garry Marshall is directing. Katherine Fugate wrote the screenplay.
Robert De Niro, Ashton Kutcher, Sofia Vergara, Halle Berry, Zac Efron, Jessica Biel, Michelle Pfeiffer, Abigail Breslin, Hilary Swank, Sarah Jessica Parker and Sienna Miller also are set to appear in the movie.
Duhamel, 39, starred in the television series "Las Vegas." He played Major William Lennox in the 2009 "Transformers: Revenge of the Fallen." He is set to play the same character in "Transformers: Dark of the Moon," coming out July 1, 2011.