Had colonoscopy 1 year ago was fine have ibs ive had some stress recently and stomach been hurting and gassy like toot 40+ times a day doc said ibs?

IBS? It sure sounds like IBS. Over the counter probiotics are a good treatment starting point. Also, avoid gas producing foods. Another thought is that you should probably be tested for Giardia infection. This can cause similar symptoms and can be cured with an antibiotic. It requires a stool specimen to be tested.