How to round a given number to a 0, 5 or 9, which ever is closest? I've tried with:
=MROUND(I2,5)-((MOD(MROUND(I2,5),10))=0)
But I need zeros too, this only gives me fives and nines. Thanks
=1*(ROUNDDOWN(A2/10,0)&INDEX({0,5,9},MATCH(MIN(ABS({0,5,9}-MOD(A2,10))),ABS({0,5,9}-MOD(A2,10)),0)))
Added a 0 to ROUNDDOWN
to satisfy excel, producing the following: