VBA.xlsx

Hi SamT,

thank you for the answer, I attach the excel file with the 5 line sample, another sheet and an explanation of the calculation in the sheet "adjusted",
I will be very grateful for any kind of help you can provide.

Kind regards,

M