How do I round DOWN only, 24999 to 24000.

I

Ian

In my business, we have to round numbers DOWN, not to the closest 1000, for
values over 50,000. From 20-50,000, we have to round DOWN to the 500. Under
20000, we have to round DOWN to 100. I can't figure it out.
 
B

Bob Phillips

=if(A1<20000,FLOOR(A1,100),IF(A1<=50000,FLOOR(A1,500),FLOOR(A1,1000)))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
R

Roger Govier

Hi Ian

One way would be if A1 conyains your original value
=IF(A1>50000,ROUNDDOWN(A1,-3),IF(A1>25000,(ROUNDDOWN(A1/5,-2))*5,ROUNDDOWN(A1,-2)))
 
Top