Hi Jobowo
Thanks for testing my formula. Any error you find will be an opportunity to improve it.
I could not, however, reproduce the error. This is what I've done:
I started with my solution in Post#3. The data table is in A1:I9 and the results table in K2:L6.
I then followed the steps you mentioned in your post, first:
... moving the array down and right using insert rows/columns ...
I inserted 3 rows before row 1.
The data table is now in A4:I12 and the results table in K5:L9.
I inserted 2 columns before column A.
The data table is now in C4:K12 and the results table in M5:N9.
... and then moving it back using range selection and drag-and-drop
I selected the source data table in C4:K12 and moved it back to A1:I9
I selected the results data table in M5:N9 and moved it back to K2:L6
After each step all the results held.
I could not make the formulas fail as a result of a change in location of the data. I tried several Insert/Delete Rows/Columns and also selecting the tables and moving them around and could not find any problem with the formulas.
I'd be thankful if you'd post the exact steps of your test, with the errors you get, so that I can study this issue.