Try this Excel formula to see if it works for you. It worked on a test sheet here using Excel 2000. =IF(F2="BUY",H2*-1,H2)