First you need to select the cells that you want to hide their value or formula in the formula bar, then press Ctrl+1 (or right click and select "format cells..." . On the "Protection" tab check the "Hidden" box.
After that protect your sheet (Review-> Changes-> Protect sheet) and the formulas will disappear.