Most working professionals think it's important to have a sense of humor around the office, a recent survey found.

Among nearly 500 full and part-time office workers surveyed, 97 percent said they preferred workplace managers who could make them laugh, while 87 percent said their bosses were pretty funny, according to Robert Half International, a Menlo Park, Calif.-based staffing services firm.

"Managers who can laugh at themselves or difficult situations are often seen as more approachable and in touch with the challenges their teams face," Max Messmer, chairman and CEO of Robert Half International. He said a good sense of humor helped build rapport among staff and eased otherwise stressful situations.