+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : rounding off numbers when a symbol is added to the cell

  1. #1
    Registered User
    Join Date
    06-08-2011
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    23

    Exclamation rounding off numbers when a symbol is added to the cell

    In cell N19 the number there is rounded down to .004. Cell i19 is < symbol + N19 only it is showing it as <0.004495333. I want it to show it as <.004. How do I make it round the number off to the nearest thousanth with having a < symbol added in the cell?
    Last edited by jimb01; 07-11-2011 at 09:33 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,652

    Re: rounding off numbers when a symbol is added to the cell

    Here, try this:

    =IF(L19>5, P19, "<"&ROUND(N19, 3))

    Hint: no need for two IF functions. Check how it work.
    Last edited by zbor; 07-11-2011 at 09:36 AM.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: rounding off numbers when a symbol is added to the cell

    Here are two approaches.

    1) a formula that returns formatted text
    I19: =IF(L19>5,P19,"<"&ROUND(N19,3))

    I OFFERED A BETTER 2ND OPTION IN THE SUBSEQUENT FOLLOW-UP POST
    2) a formula that returns the referenced number and simply displays a leading symbol.
    I19: =IF(L19>5,P19,N19)
    Format that cell with a custom number format:
    • Format.Format_cells.Number_tab
    Category: Custom
    Type: <0.000
    Click: OK

    That cell's value will still be numeric and can be used in calculations.

    Is that something you can work with?
    Last edited by Ron Coderre; 07-11-2011 at 09:53 AM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: rounding off numbers when a symbol is added to the cell

    Actually, the custom number format wouldn't work the way you want it to.

    A better second option would be:
    2) Use conditional formatting to display the I19 number
    • Home.Conditional_formatting...Use a formula todetermine which cells to format
    • Formula: =($L19<=5)
    • Click: Format...Number_tab
    ...Category: Custom
    ...Type: <0.000
    Click: OK...click: OK

    That conditional format will only engage when the Col_L value is <=5

    I hope that helps.
    Last edited by Ron Coderre; 07-11-2011 at 09:55 AM. Reason: corrected typo

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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