getting the value from the previous row column

getting the value from the previous row column

I want to get the value of the column in the row. I tred .val function but wasnt successful. How can we get the value from the column of a row?