Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Microsoft Excel 2007, which formula is used to convert the following decimal values in this particular manner?

  • 1.3 should convert to 10
  • 2.5 should convert to 10
  • 4.8 should convert to 10
  • 5.1 should convert to 10
  • 7.2 should convert to 10
  • 10.1 should convert to 20
  • 11.4 should convert to 20
  • 13.9 should convert to 20
  • 17.2 should convert to 20
share|improve this question
up vote 5 down vote accepted

You need the Ceiling function.

For example, =CEILING(A1, 10) will round the value in A1 up to the nearest multiple of 10.

share|improve this answer
    
thank you sir. it is huge help. – user514892 Jul 23 '13 at 14:39

CEILING is fine but you can also round to powers of 10 using ROUNDUP, so for this case

=ROUNDUP(A1,-1)

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .