How to fit histogram in two different ranges?

I have some problem. I would like to fit two different intervals in the same histogram with one function. but i don´t know how to do that. :angry: and i really need it.

Thank you for help!!!

Cheers, rootacka

see tutorial fitExclude.C