The formula is a statement which is written by a user for the purpose of calculations. Example- 1+2+3 whereas a function is a built-in formula by Excel. Example- SUM (1+2+3).