You can use MROUND
instead:
=MROUND(A1,5)
It rounds to the nearest 5. Anything including and above 277.5 will be rounded to 280, and anything below that will be rounded to 275.
If you still want to use IF
, then I would pick MOD
:
=IF(MOD(A1,5)>2.5, CEILING(A1,5), FLOOR(A1,5))
So, if the remainder is above 2.5 when divided by 5, round up, otherwise, down.