Public Function fnRoundedWithHalfs(varNumber As Currency) As Currency
[COLOR="SeaGreen"] ' Returns either rounded up or down value unless its .05 in which case keep it.
' Will guarantee there is a more elegant way of doing this but I have a glass of red in my hand.
' © Minty @ AWF ;)
[/COLOR]
Dim sNumber As String
Dim iAddItBack As Currency
Dim iWorking As Long
sNumber = Int(varNumber * 100)
'Debug.Print sNumber
If Right(sNumber, 1) = "5" Then
iAddItBack = 0.05
End If
[COLOR="SeaGreen"] ' Now round the original[/COLOR]
iWorking = (varNumber * 10)
'Debug.Print iWorking
fnRoundedWithHalfs = (iWorking / 10) + iAddItBack
End Function