In B, = INT(A1/5)+1
Does that work for you?