Thank you nilem for looking at this once again!

When I clear the cell A1, Excel gives the following error:

Run-time error '13':
Type mismatch

And debugger higlights/stops at this line: "y(k, 1) = x(i, 1) + x(1, j)"