According to this you are looping a number of times equal to the number of rows in your sheet.
You are then , each time, getting row 5, printing cell 5, and running a
test using cell 4.
I'm guessing a bit, but presumably
you should be changing the row you are checking.