Function ceil(n,m) temp = n/m If Int(temp)/temp=1 Then ceil=temp Else ceil=Int(temp)+1 End IfEnd Function
msgbox ceil(4,5)
msgbox ceil(5,5)
msgbox ceil(6,5)msgbox ceil(9,5)