ryan bailey howard (born may 5, 1979) is a fictional character on the us television series "the office". he is played by the show's writer, director, and executive producer b. j. novak. he is based on ricky howard from the original british version of "the office". in season 7, he marries kelly kapoor played by mindy kaling.