I have this code to get the smallest number that can find and his column in each row of the matrix and write it in cells(column where it was found, row)
This is the matrix at the beginning
https://i.stack.imgur.com/Ufn5V.jpg
I execute the code and this is what happens...