I wouldn't call this trend lines :-) Anyway, you may start with finding which point has first larger or equal X:
Formula:
=MATCH(B23,D3:D11,-1)
Its value (in this case 69.64) will be easy to find with:
Formula:
=INDEX(D3:D11,MATCH(B23,D3:D11,-1))
and smaller than (12.87) by:
Formula:
=INDEX(D3:D11,MATCH(B23,D3:D11,-1)+1)
similar formulas for their respoecive Y values
Formula:
=INDEX(E3:E11,MATCH(B23,D3:D11,-1))
=INDEX(E3:E11,MATCH(B23,D3:D11,-1)+1)
then Y for given X can be found from simple proportion
Y = y_too_small + (x_too_big - X)/(x_too_big - x_too_small)*(y_too_big - y_too_small)
so in excel:
Formula:
=INDEX(E3:E11,MATCH(B23,D3:D11,-1))+(INDEX(D3:D11,MATCH(B23,D3:D11,-1))-B23)/(INDEX(D3:D11,MATCH(B23,D3:D11,-1))-INDEX(D3:D11,1+MATCH(B23,D3:D11,-1)))*(INDEX(E3:E11,1+MATCH(B23,D3:D11,-1))-INDEX(E3:E11,MATCH(B23,D3:D11,-1)))
BTW, I hope I've not mismatched any ranges - It's much easier to write such formulas with sample workbook to test them :-) But you attached none
Bookmarks