Search code examples
excelexcel-formulatrendline

How to switch x/y in trendline expression?


Without switching axis on chart itself, what is the easy way to switch x and y for the given expression like y = 3E-12x5 - 4E-09x4 + 1E-06x3 + 0.0005x2 - 0.0302x + 23.826. So I would like to get x for the given y series.


Solution

  • You don't need to create a chart to derive a polynominal regression, you can used LINEST and then for your problem, simply swap the x and y ranges

    See here

    enter image description here