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