TREND function is a built-in function in excel which comes under the category of Statistical function to calculate the linear trend line of known ys and know xs. To create a range in a formula you can either write down the range manually or select the cells which will be taken as a range. 50 Excel Shortcut to Increase Your Productivity.
The Excel IF function will work if the logical_test returns a numeric value.
Get faster at your task. Open SUM function in the G2 cell. TREND function uses the Least square method to find the line of best fit and to find new y-value for the given x-values. This formula subtracts the first day of the ending month 512016 from the original end date in cell E17 562016.