Hello
Select the cells with the formula
Go to the Protection tab in Format Cells (CONTROL+1).
Check 'Hidden' > Ok
The formula will be hidden when you protect the sheet, so make sure you also unlock the relevant cells / ranges in the Format Cells (Protection tab) dialog.
Precise instructiuons for protecting the worksheet will depend on your excel version.