Locking cells protects the formula itself from deletion, but it doesn't prevent someone from changing the cell references within the formula. Consider using a combination of locking and hiding formulas (accessible through the Format menu) for maximum protection.