In the array below, I want to look for a certain value only in column Y1, I don't want it to look for that value in the entire array. Let's say I want the value 51, it's at (1,4) and also at (2,4) and still at (3,4). So I want the program to look only in column Y1. And when it finds the value, which in this case as an example I want the number 51, in the column that I want to be Y1, which is in (1,4), I want it to return the value of the y column on the side , that is y-1, that is, in this case it would be (0,4) or (1-1,4).
If anyone can help me I would be grateful, thanks.