• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help Understanding Formula with INT

adamuce

Member
Hello Guys:

I am trying to understand the INT formula used in this equation. I have attached the excel sheet and the photo here (the emboldened part of the formula)

Thanks in advance
 

Attachments

  • Chandoo.xls
    271 KB · Views: 5
Many thanks Chirayu...

I understand that it is also doing a bracket of 5.
However what if the bracket was 10?
 
if you want a bracket of 10 then just change the 5 to a 10 for the divide/ multiply bits

thanks again mate you are a star! For my own understanding why did they subtract "1" and add "1" again?

Can anyone recommend an easy website to understand the INT function in my example?
 
1] Your formula is targeted to round number up to nearest multiple of 5

Here is a simplified formula instead

=CEILING(2018-A2,5)+A2

2] For a multiple of 10 just change 5 to 10 as in :

=CEILING(2018-A2,10)+A2

Regards
Bosco
 
1] Your formula is targeted to round number up to nearest multiple of 5

Here is a simplified formula instead

=CEILING(2018-A2,5)+A2

2] For a multiple of 10 just change 5 to 10 as in :

=CEILING(2018-A2,10)+A2

Regards
Bosco
Another new formula! WOW! thanks alot
 
How about
= MOD( -age, 5 )
where 'age' refers to column B.
That is, the number of years to go before the age reaches the next multiple of 5. If you want a bracket of 10
= MOD( -age, 10 )
 
Back
Top