+ Reply to Thread
Results 1 to 4 of 4

Formatting a number in a formula

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

    Formatting a number in a formula

    How do I get I20 to = <0.040? Right now I can only get it to show 0.04. I have the cell formatted for number (3 decimal places). This is the formula I am usingfor I20 is: =IF(H20="","",IF(H20=""&"/"&K20,"",IF(E20="Blank","Blank",IF(L20>5,N20,IF(L20<=5,"<"&ROUND(N20,3)))))). The fomula for N20is: =IF(L20="","",IF(L20<=5,(0.055*49.04)/G20,IF(L20>=5.5,(L20/K20)*49.04/G20))). The answer for N20 cameout to be 0.040 Why can't I get I20 to = <0.040? Thank you for your assitance.

    Jim
    Last edited by JBeaucaire; 06-25-2013 at 06:32 PM. Reason: Created new thread, as per Forum Rules. Please take a moment to read them, link above in the menu bar.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formatting a number in a formula

    The problem is you're inserting a text character into the cell, "<" and that means the result is no longer numeric, it's all text.

    ="<" & ROUND(N20,3) ... is a text string that just "looks" numeric. It's not.

    Fortunately Excel gives you the TEXT() function to format text-numbers.


    = "<" & TEXT(ROUND(N20,3),"0.000")



    =IF(H20="","",IF(H20=""&"/"&K20,"",IF(E20="Blank","Blank",IF(L20>5,N20,IF(L20<=5,"<"&TEXT(ROUND(N20,3),"0.000"))))))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formatting a number in a formula

    When you joined the forum recently you agreed to abide by the Forum Rules, but in haste I fear you might not have actually read them. Please stop and take a moment to read them now. We all follow these rules for the benefit of all, as must you. Thanks.

    (link above in the menu bar)

    -----------------
    Your post did not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.


    I changed your title for you this time.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formatting a number in a formula

    Thanks for the feeback.

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above and mark this thread as SOLVED. Thanks.

+ 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