+ Reply to Thread
Results 1 to 3 of 3

Use rounded value (to tenths place) in a single cell's calculation

  1. #1
    Registered User
    Join Date
    11-16-2013
    Location
    Belfast
    MS-Off Ver
    Excel 2010
    Posts
    25

    Use rounded value (to tenths place) in a single cell's calculation

    In A2, I have a formula that yields a percentage.

    In A3, I have a formula that will yield a phrase that indicates what range the percentage falls into. It works fine, except when the percentage in A2 is at the min or max of the range.

    Here's the formula I made:

    =IF(AND(ROUND(A1,2)>=0%,ROUND(A1,2)<=5%),"Tier 1",IF(AND(ROUND(A1,2)>=5.1%,ROUND(A1,2)<=9.9%),"Tier 2",IF(AND(ROUND(A1,2)>=-9.9%,ROUNDUP(A1,2)<=-0.1%),"Tier 3",IF(ROUND(A1,2)<=-10%,"Tier 4",IF(ROUND(A1,2)>=10%,"Tier 5")))))

    For example, if you put 9.9% in A2, it gives you Tier 5, not Tier 2. If I don't use the "Round" function, it gives the right answer, but not all the time. For example, if A2 were 9.91%, it returns Tier 5, not Tier 2. I need the percentage rounded to the tenths place (rounded up if the second decimal is a 5), and for that rounded value to be considered in the formula in A3.

    Any advice? Thank you!

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Use rounded value (to tenths place) in a single cell's calculation

    round to 3 not 2 9.9% rounded to 2 is 10% because its actually rounding 0.099 to 0.1 but round to 3 leaves it as 0.099
    or 9.9%
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Use rounded value (to tenths place) in a single cell's calculation

    I roundup(9.91%,2) = 10.00%, but if i roundup(9.91%,4) = 9.91%

    That why "if you put 9.9% in A2, it gives you Tier 5, not Tier 2."

    to tenths place roundup(A1,12)
    Is this answer your question.
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

+ 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. Display rounded number but don't use rounding in calculation
    By darxide23 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2013, 03:47 PM
  2. Replies: 0
    Last Post: 06-27-2012, 12:41 PM
  3. Replies: 1
    Last Post: 03-02-2006, 08:30 PM
  4. [SOLVED] Wroking with rounded or trunc calculation
    By Wendy - Payroll in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2005, 11:05 PM
  5. How do I use a rounded calculation result in another calculation?
    By vnsrod2000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-26-2005, 06: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