• 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.

Round off.

aratrika

New Member
Kindly help me out that i have a cell value Rs.9957 in A1 and i want to load 5%-5% and to be rounded off to nearest 50 rupee. In this case the value will be Rs. 10481(9957/.95+9957) and i want the value to be rounded to 10500 and if the value is 10449 then rounded off to 10400. pls help me.


Thanks & regards


Aratrika
 
Hi Aratrika ,


I do not know how you got 10481 from 9957 , but the rounding off can be done by specifying a negative number ; =ROUND(10449,-2) will give 10400 ; =ROUND(10450,-2) will give 10500.


Narayan
 
I WANT THE CELL VALUE WHATEVER IT MAY BE THE AMOUNT TO BE RESTRICTED TO THE NEAREST 100 RUPEE. PLS. HELP.


THANKS & REGARDS


ARATRIKA
 
Hi aratrika,


I think Narayan's formula is best if you always want to "Round Down" the figure to nearest 100th, but if you want to do "Round Up" as well depending on whether the fraction is less then 50 or more then it (eg. 10510 should be 10500 and 10551 & 10598 should be 10600) then this will work:


Code:
=IF(A1-ROUND(A1,-2)<51,ROUND(A1,-2),ROUND(A1,-2)+100)


Regards,
 
Narayan's formula handles both cases and is shorter as well.


I guess Aratrika has not posted correct correlation to get 10481.


Following is Narayan's formula with Aratrika's requirement (hopefully :) )


=ROUND(A1/0.95,-2)
 
Back
Top