alysonfromon wrote:
How do I delete the information in the Numbers app without deleting all the formulae?
Suppose you have a table like this with formulae interspersed with data that you find inconvenient to separate ...

...And you want to quickly remove the data, leaving the formulae, so that it looks like this, ready for reuse with new data:

You can quickly accomplish that by running the script below.
- Copy-paste the script from below into AppleScript Editor (in Applications > Utilities).
- Select the cells you want to clean up, leaving the formulas. For example, here I selected B2:D8.
- Click the triangle run button in Script Editor.
Some people are intimidated by scripts. But it is really easy to use one that is already written. Copy, paste, select cells, click to run.
Be sure to make a backup of your work before using this just in case you accidentally select the wrong cells.
SG
tell application "Numbers"
tell front document to tell active sheet
tell (first table whose selection range's class is range)
set selRng to selection range
repeat with aCell in selRng's cells
tell aCell to if its formula is missing value then ¬
set its value to ""
end repeat
end tell
end tell
end tell