R
ruthvofmc
I created a function to calc the % of markup, it works just fin until I
get into prices >99.99, and then it doesn't match to some current data
I'm using that I think is rounding. Have I built this function
properly? and if so how do I get it to round?
Function Markup(Price)
'Low to High price range * % + flat additional amount
If Price <= 9.99 Then Markup = Price * (400 / 100 + 1) + 5
If Price > 9.99 And Price <= 49.99 Then Markup = Price * (325 / 100
+ 1) + 15
If Price > 49.99 And Price <= 99.99 Then Markup = Price * (275 /
100 + 1) + 25
If Price > 99.99 And Price <= 749.99 Then Markup = Price * (230 /
100 + 1) + 60
If Price > 749.99 And Price <= 1499.99 Then Markup = Price * (150 /
100 + 1) + 100
If Price >= 1500 Then Markup = Price * (100 / 100 + 1)
End Function
get into prices >99.99, and then it doesn't match to some current data
I'm using that I think is rounding. Have I built this function
properly? and if so how do I get it to round?
Function Markup(Price)
'Low to High price range * % + flat additional amount
If Price <= 9.99 Then Markup = Price * (400 / 100 + 1) + 5
If Price > 9.99 And Price <= 49.99 Then Markup = Price * (325 / 100
+ 1) + 15
If Price > 49.99 And Price <= 99.99 Then Markup = Price * (275 /
100 + 1) + 25
If Price > 99.99 And Price <= 749.99 Then Markup = Price * (230 /
100 + 1) + 60
If Price > 749.99 And Price <= 1499.99 Then Markup = Price * (150 /
100 + 1) + 100
If Price >= 1500 Then Markup = Price * (100 / 100 + 1)
End Function