excel - Retail decimal rounding conditions using custom rounding rules -
in ms excel trying create retail price according these conditions:
if retail price ends between .11 , .36, retail price end in .31 ex: $5.15 = $5.31
if retail price ends between .95 , .00, retail price end in .96 ex: $5.00 = $4.96 , $5.98 = $5.96
how can apply these conditions in excel set of retail prices, looking @ decimal places , having output defined custom/random conditions?
you can use formula achieve same:
=if(and(mod(c3,1)>=0.11,mod(c3,1)<=0.36),0.31+int(c3),if(and(mod(c3,1)>=0.95,mod(c3,1)<=0.99),0.96+int(c3),if(mod(c3,1)=0,int(c3)-1+0.96,mod(c3,1)+int(c3))))
where, c3 contains retail price.
Comments
Post a Comment