Pain underneath lower left rib cage and up the left side of back. What can I take for this?

Hard to say. There are multiple potential causes, you should consider being seen. Possible causes can incude an irritation of a nerve in the thoracic spine, an inflammatory condition involving the pancreas or the lining of the lung, and multiple other causes. A detailed exam and appropriate studies can usually sort out the cause. Thank you for the question.