With the data in A2: C7 based on the standard weighted least squares formula, you can try:
=LINEST(B2:B7*C2:C7^0.5,IF({1,0},1,A2:A7)*C2:C7^0.5,0)
entered with CTRL + SHIFT + ENTER in E2: F2 or in any 2x1 range. This also returns {1.1353,1.4412}.
For rsquared you can enter:
=INDEX(LINEST((B2:B7-SUM(B2:B7*C2:C7)/SUM(C2:C7))*C2:C7^0.5,IF({1,0},1,A2:A7)*C2:C7^0.5,0,1),3,1)
Formula explanation
First, consider the normal regression of y on X using LINEST. If const = TRUE, the regressor matrix is ββan augmented matrix consisting of a column of units followed by regressor columns, i.e. X '= (1, X). If const = FALSE, the regressor matrix is ββsimply X, so starting a regression with a column of included ones gives the same estimates as running without a column of them and setting const = TRUE.
Now consider weighted least squares regression. The regression is now Wy on WX '= (W1, WX), where W is the diagonal matrix consisting of the square root of the weights. Since there is no column present, we must set const = FALSE and use two columns in the regressor matrix.
Calculation of Rsquared
Set the statistics to TRUE at the LINEST output of the first formula, which we get in the third and fifth lines:
SSres = 59.76 SSreg(u) = 1461.24 SSTot(u) = 1521 Rsq(u) = 1 - 59.76/1521 = 0.9607
Note that these values ββare non-central versions (u), since const = FALSE (for more information, see MS's LINEST help.) For centered versions (c), we need to subtract the weighted average as shown below:
SSTot(c) =SUMPRODUCT(C2:C7*(B2:B7-SUM(B2:B7*C2:C7)/SUM(C2:C7))^2) = 244.93 Rsq(c) = 1 - 59.76/244.93 = 0.756