Results 1 to 6 of 6

Thread: Need help on ROUND function in excel

  1. #1
    Join Date
    Dec 2009
    Posts
    50

    Need help on ROUND function in excel

    I am trying to make a students report so i require some sort of help in ths matter. I would like to make a report which should be such that
    i want the number 0.25 to be 0 only
    i want the number 0.5 to be the same number 0.5
    i want the numer 0.75 to be 1
    So explain me a how can i use the round function with this condition in excel 2003. Any help would be appreciated.

  2. #2
    Join Date
    Sep 2005
    Posts
    1,306

    Re: Need help on ROUND function in excel

    The round function is a very useful in ms excel in rounding off the data to the neares round figure. Use the below code for the student report

    =IF(A1=0.5,0.5,ROUND(A1,0))

    If A1 = 0.5, you'll get 0.5 Else the ROUND() function does what it's supposed to do.

    I hope that this eill solve the problem.

  3. #3
    Join Date
    Dec 2009
    Posts
    50

    Re: Need help on ROUND function in excel

    thank for helping me
    i have already used this function before
    the problem here is that the number can be 6.5 or 7.5 or 99.5 for example not only 0.5 . Please tell me what can i do say for example 9.5 and not 0.5 or any number i mean to say that for student reports it can be any (mark.5) (X.5)=(X.5)
    So please provide me a solution with proper code

  4. #4
    Join Date
    May 2008
    Posts
    4,570

    Re: Need help on ROUND function in excel

    I think that you don't need a round function . You can try using the if function because the if function would be more flexible. Consider the if function below to resolve your problem

    IF ( A1= X.5 IT WILL BE X.5 , IF (A1 = X.25 IT WILL RETURN X.25+0.25) SO X.25 WILL B2 X.5 and you need X.75

    So use this logic and you will get the solution.

  5. #5
    Join Date
    Apr 2008
    Posts
    4,088

    Re: Need help on ROUND function in excel

    Hi,
    I guess every one responding here are applying there own logics the formula suggested above is useful to some extent but is somewhat complicated to some extent. I have a different solution which is quite simpler than the above one.

    If your value is in A1 use this formula:
    =INT(A1)+IF(MOD(A1,1)<0.25,0,IF(MOD(A1,1)>0.75,1,0.5))

    You can change the exact break points, as and when required, either by changing values or using >=0.75 etc.

  6. #6
    Join Date
    Dec 2009
    Posts
    50

    Re: Need help on ROUND function in excel

    I just wonder that why these formulaes are not working because when i use it when i type 5.25 its returning 5.5 This is TRUE
    when i type 5.5 its returning 5.5 This is TRUE
    when i type 5.75 its returning 5.5 This is False because i want it to return 6
    i have still not got the desired solution So any help in this matter would be appreciated.

Similar Threads

  1. Using Rnd function on VBA in Microsoft Excel
    By SirName in forum MS Office Support
    Replies: 2
    Last Post: 15-02-2012, 05:03 PM
  2. How to round-off nearest currently values in Microsoft Excel
    By Dvimida in forum MS Office Support
    Replies: 4
    Last Post: 25-01-2012, 06:22 PM
  3. Excel Function and Excel Chart Colors
    By Samarth in forum Windows Software
    Replies: 5
    Last Post: 13-01-2010, 08:16 PM
  4. Excel PERCENTILE function without 0
    By Wyvern in forum Software Development
    Replies: 6
    Last Post: 05-01-2010, 09:37 AM
  5. How to Use Excel's SUBTOTAL Function
    By CrazeD in forum Windows Software
    Replies: 3
    Last Post: 01-12-2009, 12:03 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,513,665.68410 seconds with 17 queries