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