The confusion on this post stems from the original question which can be taken to mean two different things.
If you have a worksheet with multiple data including numbers, texts and formulas, and you just want to delete all data but keep the formulas in this worksheet, how can you do?
You may interest in:
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately. 60-day Unlimited Free Trial
There is no direct or one-click function to delete all data but formulas in Excel, but you can use Go To Special function to select all data but formulas first and then delete them.
1. Select the range you want to delete all data but formulas, press Ctrl + G keys simultaneusly to open the Go To dialog, then click Special button in the dialog to open the Go To Special dialog. See screenshots:
2. Then in the Go To Special dialog, check Constants and click OK to close the dialog. See screenshot:
3. Now all the data but formulas are selected, and press Delete button on the keyboard or right click to select Delete to remove all data except forluma cells.
On the contrary, in this section, we will show you how to delete all formulas from selected range but keep data in Excel.
1. Select the range with formulas you want to remove but keep the data, then click Kutools > To Actual. See screenshot:
You can see all formulas in selected range are removed immediately, but the calculated results are kept in cells. See screenshot: