I am happy to help you today.
You need to have your gallbladder checked if you haven't already done so.
Unfortunatly around 40 in females seems to be when it starts acting up.
The pain can sometimes be right under your right rib cage and down to your hip.
THe doctor can check lab work and send you for a gallbladder ultrasound to see if it is working properly.
If something is seen then a HIDA scan is usually ordered to check the function.
Stay clear from anything fatty as this can make it hurt worse.
If it isn't your gallbladder there is the possibleity of kidney stones or ovarian cyst.