Comedy is a science, It needs to be studied and analyzed. It has rules and guidelines and its all quite technical. You say you have the ability to make your friends laugh in day to day situations, You need to experiment and understand how your comic ability works. Are you funny in a monty python "dead seriously ridiculous" way, Maybe in a marx brothers physical character based comedy style. If you deconstruct QC its a sit-com that plays off the stereotypes and notions of certain social steretypes (emo kids, Goths, Indie elite). If you wanna write a succesful comic thats more than just sight gags and obvious humour you need to really understand what people find amusing, Its bizarre how some of the weirdest shit makes people laugh. My advice is watch alot of classic comedy, Listen to these people....
(this isnt a definitive list of comedians just a list of people with unique styles)
Richard pryor
Lenny bruce
David cross
Bill hicks
Dane cook
Dave chappelle
And google "buster keaton" the mans such a genius i had to steal his moniker.