How do I round DOWN only, 24999 to 24000.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
=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)
 
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)))
 
=FLOOR(A1,LOOKUP(A1,{0,20000,50000},{100,500,1000}))

HTH
Jason
Atlanta, GA
 
Hi Jason

Very neat!

--
Regards
Roger Govier
Jason Morin said:
=FLOOR(A1,LOOKUP(A1,{0,20000,50000},{100,500,1000}))

HTH
Jason
Atlanta, GA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top