D
Denise
Hello.
I am converting a spreadsheet inventory system to Access and trying to match
the calculations being used on the spreadsheet. The formula in Excel reads:
=ROUNDUP((B23/PI())-(2*B30),4). Substituting values the formula would be
=ROUNDUP((14.25/3.14159265358979)-(2*0.085),4) which gives me a value of
4.366.
I have looked at other posts and came up with the following function:
Public Function Roundup(RoundMe As Double)
Dim RoundAnswer As Double
RoundAnswer = Round(RoundMe, 4)
If RoundAnswer < RoundMe Then
RoundAnswer = RoundAnswer + 1
End If
Roundup = RoundAnswer
End Function
Using the above function in Access, I have the following expression:
RoundUP((14.25/3.14159265)-(2*0.085)) which gives me a value of 5.3659.
I have tried various different ways of looking at this, and I am stumped!
Can someone please help?
Thanks in advance,
Denise
I am converting a spreadsheet inventory system to Access and trying to match
the calculations being used on the spreadsheet. The formula in Excel reads:
=ROUNDUP((B23/PI())-(2*B30),4). Substituting values the formula would be
=ROUNDUP((14.25/3.14159265358979)-(2*0.085),4) which gives me a value of
4.366.
I have looked at other posts and came up with the following function:
Public Function Roundup(RoundMe As Double)
Dim RoundAnswer As Double
RoundAnswer = Round(RoundMe, 4)
If RoundAnswer < RoundMe Then
RoundAnswer = RoundAnswer + 1
End If
Roundup = RoundAnswer
End Function
Using the above function in Access, I have the following expression:
RoundUP((14.25/3.14159265)-(2*0.085)) which gives me a value of 5.3659.
I have tried various different ways of looking at this, and I am stumped!
Can someone please help?
Thanks in advance,
Denise