Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.