How to Update a value in a Specific cell of a row based on the condition of a value in a specific cell of another row

i tried that, didn’t work