here is your formula.
=TREND(DataY,DataX^{1,2,3,4,5,6},Sheet1!A4^{1,2,3,4,5,6},TRUE)
I am using named ranges (DataX and DataY) that are dynamic.
This is the formula used for the DataX named range:
=OFFSET(Sheet2!$B$12,0,RIGHT(Sheet1!$C$4)-1,10,1)
Here is the formula for DataY:
=OFFSET(Sheet2!$B$2,0,RIGHT(Sheet1!$C$4,1)-1,10,1)
The trick is in those 2 formulas. They extract the number in the dropdown box in C4 and offset the selected range accordingly.
Below is your workbook modified with the new formula and the 2 named ranges.
Bookmarks