product q1 q2 q3 q4 1 5 9 NA 6 1 6 8 5 8 2 8 7 NA 9 2 9 4 6 7 This is a small example, but my code loops through column q2 and when reaches q3 it shows