The present invention is related to a pharmaceutical formulation which comprises NSAID having antiinflamatory, analgesic and antipyretic effect together with an H2 receptor antagonist used for preventing and minimizing the gastrointestinal side effects of NSAID. According to another aspect, the present invention relates to the fact, that the pharmaceutical formulation comprising NSAID as the first drug substance and H2 receptor antagonist as second active substance is a novel solid oral multilayer tablet