=round(d2/2,0)
this will round up. if you need to change it then you can use
roundup(d2/2,0) or rounddown(d2/2,0).
If you want some or logic then it is a little more difficult and one way is
to have a seperate column indicating the last round up or down and you base
it on that.