Excel will instantly return you into the original cell. Some people now consider Excel quite expensive in comparison to free alternatives. Consequently, the very first step would be to double check Excel’s listing of native functions to see whether there’s already one which will do the calculations you’re considering.
db-excel.com
Excel Spreadsheet Template