+ Reply to Thread
Results 1 to 9 of 9

Display rounding adjustment before getting the end result

  1. #1
    Registered User
    Join Date
    12-10-2014
    Location
    Asia
    MS-Off Ver
    2010
    Posts
    3

    Display rounding adjustment before getting the end result

    Hi. I would like to ask if there is any formula to show the rounding adjustment before getting the end result.

    i would like to set it to:
    if the 2nd decimal places is
    X.X1 & X.X6, then -0.01
    X.X2 & X.X7, then -0.02
    X.X3 & X.X8, then +0.02
    X.X4 & X.X9, then +0.01
    for X.X5 it will remain as 0.05
    and X.X0 it will remain as 0.00.

    For example, if now after i sum up the figures from cell A1 to cell A10, it is 12,345.67
    i wish to show a rounding figure adjustment of -0.02
    which thus will end up getting 12,345.65.

    which mean, figures will be showed as
    in cell A11, 12.345.67
    in cell A12, -0.02
    in cell A13, 12.345.65

    How would the formula be in cell A12? (I don't want to use the rounding formula in order to get the figure in cell A13 as i was told to display the rounding adjustment before getting the end result)

    Hope the is someone who can help me to solve this problem. It has bothered me for few days. :'(

    Thank you.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Display rounding adjustment before getting the end result

    .


    =floor(a11,0.05)


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    12-10-2014
    Location
    Asia
    MS-Off Ver
    2010
    Posts
    3

    Re: Display rounding adjustment before getting the end result

    HI Sixthsense ,

    Thank you for replying. However that is not the formula that i want because it does not showing the rounding adjustment before getting the end result.

    Btw, it rounded to the nearest 0.05, which is different from what i am asking in the thread.

    Anyway, thank you for trying to help me.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Display rounding adjustment before getting the end result

    Attach sample file with desired result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Display rounding adjustment before getting the end result

    May be this... ?


    =A11+-0.02

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Display rounding adjustment before getting the end result

    i came up with this longer. not able to think to shorten up but the logic i think would help.
    extract 2nd place value by int/mod
    subtract 5 if value is greater than 5 leaving a table for 1-5 use for lookup

    =A2+IFERROR(LOOKUP(INT(MOD(A2*10^2,10))+IF(INT(MOD(A2*10^2,10))>5,-5,0),{1,2,3,4,5},{-0.01,-0.02,0.02,0.01,0}),0)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  7. #7
    Registered User
    Join Date
    12-10-2014
    Location
    Asia
    MS-Off Ver
    2010
    Posts
    3

    Re: Display rounding adjustment before getting the end result

    Quote Originally Posted by vlady View Post
    i came up with this longer. not able to think to shorten up but the logic i think would help.
    extract 2nd place value by int/mod
    subtract 5 if value is greater than 5 leaving a table for 1-5 use for lookup

    =A2+IFERROR(LOOKUP(INT(MOD(A2*10^2,10))+IF(INT(MOD(A2*10^2,10))>5,-5,0),{1,2,3,4,5},{-0.01,-0.02,0.02,0.01,0}),0)
    Hi vlady,

    Thank you for the reply. I've tried it in my worksheet but it seems only works for some cells only.
    like if in cell A11, the figure is 1,027.62
    in cell A12, the rounding adjustment is (0.01) instead of (0.02).
    i thought i was because of the sum figures from A1 to A10 but when i am testing by only keying 1,027.62 in cell B1, it still came out with the rounding adjustment of (0.01) in cell B2.

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Display rounding adjustment before getting the end result

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    i change it to Mid()

  9. #9
    Registered User
    Join Date
    02-03-2016
    Location
    Virginia, USA
    MS-Off Ver
    2013
    Posts
    1

    Re: Display rounding adjustment before getting the end result

    Slightly old thread, but a trick not yet mentioned is using an array formula. I've fought this challenge in the past and know how frustrating in can be! This will let you calculate the rounded-summation, the sum-of-rounded-elements, and their difference in a single cell.

    By way of example: If "Exact" is in cell B2, and each value in the "Rounded" column is rounded to 2-digits (e.g. =ROUND(B2,2)), then the "0.03" in the table is created with the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The brackets are not typed: they show up by editing in the cell (double-click or [F2]) and using [ctl][shift][enter] to make it an array formula.

    The Totals are the normal sums of the columns.

    Exact Rounded
    1.004 1.00
    1.004 1.00
    1.004 1.00
    1.004 1.00
    1.004 1.00
    1.004 1.00
    1.004 1.00
    rounding adj. 0.03
    Total 7.028 7.03

    This can be generalized to use different rounding methods or numbers digits, just have to keep it consistent between the rows and the array formula.

    HTH,
    -W

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need help about rounding result from formula result.
    By calvinle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2014, 03:06 PM
  2. [SOLVED] Rounding formula result
    By cabusiness in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-01-2012, 10:36 PM
  3. Disable Solver Result Dialog Box & Display Result in Cell
    By yauchildchew in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-04-2010, 01:46 PM
  4. Rounding a result in the same cell
    By COZWV in forum Excel General
    Replies: 2
    Last Post: 02-19-2007, 09:27 PM
  5. [SOLVED] Rounding up the result
    By cubus in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-14-2005, 05:06 PM

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1