+ Reply to Thread
Results 1 to 6 of 6

Round number but only to a percentage change

  1. #1
    Registered User
    Join Date
    09-29-2016
    Location
    California
    MS-Off Ver
    2016
    Posts
    2

    Round number but only to a percentage change

    I have many unit costs. Some of them are large $18,911.25 and others are small $0.19. I want to round the numbers so that they indicate less precision. So the 18,911.25 would become 18,900 or maybe 19,000 and the 0.19 would become 0.2. One way I think about it is the rule I am after would be something like "round the number if the change results in less than 5%"

    Can someone help me figure out how to make this rule?

    Thank you!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,832

    Re: Round number but only to a percentage change

    I don't know about the "5%" rule. One easy way I have found to round a number to 3 significant digits is to combine the VALUE() and TEXT() functions:
    =TEXT(A1,"0.00E+0") will convert a number to a text string in scientific format with 3 digits. (change the number format to get a different number of significant digits. 2 digits might be close enough to "no more than 5%").
    =VALUE(TEXT(...)) will convert the number as text back to a number. Because the intermediate step is a text string, the insignificant digits are lost along the way.
    Excel may choose to auto format the last cell as scientific, so you may need to apply your own number formatting to get the desired appearance.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Round number but only to a percentage change

    Quote Originally Posted by estromberg View Post
    the 0.19 would become 0.2.!
    That change is not less than 5%.

    This meets what you described:

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


    where A1 is the original value
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Round number but only to a percentage change

    Quote Originally Posted by MrShorty View Post
    One easy way I have found to round a number to 3 significant digits:
    I answered the question of what he wants, and although the OP did not say how many significant digits he wanted, I suspect that your solution is really what he needs .

    However, it would help to know what he is using these numbers for, where they came from, and why he wants to round them, to be able to give the best possible answer.

  5. #5
    Registered User
    Join Date
    09-29-2016
    Location
    California
    MS-Off Ver
    2016
    Posts
    2

    Re: Round number but only to a percentage change

    You guys are very helpful. Thank you.

    Since you asked, here is the background. I am preparing a cost estimate for construction. The values are compounded for inflation based on the future year of construction. This results in my unit prices having very precise values, when for this stage of design I should have fewer significant digits. I suggested keeping the round function from changing the original value -+5% so that the rounding does not have a large effect on the overall project cost. Once I get this working, it might be that -+2% (or some other value) is better. I tried both of your formulas and they seem to work pretty well. I have to play around and see which is better in the end. The Value / Text formula is pretty creative! Thanks again. If you have other thoughts or refinements based on this info, please share!

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Round number but only to a percentage change

    Personally I would round the bottom line number rather than rounding each constituent number, to minimize cumulative rounding error. Also, rounding by percentage is a bit unconventional, although I don't think there is really anything wrong with it. I'd be interested to see how this ends up.

+ 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. Replies: 2
    Last Post: 12-06-2014, 01:58 PM
  2. Replies: 1
    Last Post: 05-23-2014, 05:58 PM
  3. Find the Percentage, Then Round Up
    By mknewnham in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-14-2014, 06:11 PM
  4. Replies: 3
    Last Post: 01-31-2013, 09:38 PM
  5. round down a percentage
    By drgogo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2008, 06:11 AM
  6. [SOLVED] How do I round down a tax percentage
    By Bill in forum Excel General
    Replies: 3
    Last Post: 11-25-2005, 03:00 AM
  7. [SOLVED] Change a number to round up without a function
    By teebee0831 in forum Excel General
    Replies: 7
    Last Post: 06-30-2005, 01:05 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1