I want to round dollar amounts to the nearest dime, quarter or dollar depending on the amount:
< $10 to nearest dime
$10.01 to $25 to nearest Quarter
$25.01 to $50 to nearest 50 cents
>$50 to nearest dollar
The excel formula to make it happen is (where x is the cell): =IF(x<10,(ROUND(x,1)),(IF(x<25,(ROUND(x*4,0)/4),(IF(x<50,(ROUND(x*2,0)/2),ROUND(x,0))))))
I can't figure out how to convert this to access module. Any suggestions?
< $10 to nearest dime
$10.01 to $25 to nearest Quarter
$25.01 to $50 to nearest 50 cents
>$50 to nearest dollar
The excel formula to make it happen is (where x is the cell): =IF(x<10,(ROUND(x,1)),(IF(x<25,(ROUND(x*4,0)/4),(IF(x<50,(ROUND(x*2,0)/2),ROUND(x,0))))))
I can't figure out how to convert this to access module. Any suggestions?