Give more details
First of all , they have to be of same socket (Ivy Bridge/Ivy Bridge , Haswell/Haswell) and it s good their watts to be the same or close - for instance 17W vs 17W , 37W vs 47W . You should check/ask if the motherboard supports the new processor and make sure the old is not soldered.