I need a function to find the interpolation between non constant intervals. Is there any function like that in Excel?

I used TREND function but it uses values of a trend line and the declination is way to far of my values and I need too accurate results.