Hi @Eloise , I probably owe you an apology for landing that spreadsheet on you; I took the problem up as a challenge! If it is any consolation this is about as obscure as it gets (unless, of course, someone better informed knows otherwise!)
Just by way of apology, I have included a further version with Season's greetings! Other than a bauble or two, the difference is a bit of VBA that loads any new formula from the cell G9 into the named formula F and evaluates it. The intention is that the user formula should reference the array 'x' which interpolates the range of integration from 'a' to 'b'. The function 'F' is used both as a chart series and is summed to give the estimate of the definite integral.
If you go into the Formulas ribbon tab and open Name Manager you will see that 'k' is an array of row numbers associated with a column range with 'N' cells. Both the chart and the sum force Excel to evaluate that array in memory and carry the calculation forward until it generates the desired result.
The shock for most people is to realise that you do not have to use worksheet cells at all to perform calculations in Excel. I fact, the calculation engine performs better on named arrays than it does on cell formulas because there the calculation is always an array calculation.
p.s. To enter a new formula, you can just type it as a string provided you are confident you will get it right. If not, type it with the '=' sign so that you get IntelliSense help building the formula and then allow the macro replace the formula by the string and set the formula property of the Name 'F'. The integration step length is changed by changing N and the upper and lower bounds of integration can be changed.