Yes Man is based on the 2005 biography Yes Man by British humorist Danny Wallace. Wallace describes the six month period during which he said "yes" to everything that was offered to him and how it affected his life.
Those who have both read the novel and seen the movie say that mostly everything was changed—plot, setting, and names—although the basic premise of a man saying "yes" to everything offered to him was kept the same.