What is the main difference between a formula and a function?

Correct
A formula is a set of instructions used to perform a specified calculation; a function is a preset command that automatically performs a specified process.