+ Reply to Thread
Results 1 to 4 of 4

Need to add decimal places to a data value inside of a function

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    26

    Unhappy Need to add decimal places to a data value inside of a function

    I am trying to do a formula that will let me accurately reflect another cells data (with decimals) to a formula line.

    The formula now is below.

    =T7&X22&B14&"° - ("&(TEXT(B15,"mmm dd")&")")

    The problem that I encounter is that in this formula, I am looking for degrees, but if it goes to a whole number it will not place decimal places in the output. EX: B14 is 90.0° but the output will always put 90°.

    I am sure that this is an easy fix, but thus far I have been unable to complete it on my own.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Need to add decimal places to a data value inside of a function

    Tyriel,

    Welcome to the forum!
    You can use the Text() function to add trailing decimal 0's like so:
    =T7&X22&TEXT(B14,"0.0")&"° - ("&TEXT(B15,"mmm dd")&")"


    btw, is your username from Diablo by any chance?
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-09-2013
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Need to add decimal places to a data value inside of a function

    Thanks for the help!

    It is from Diablo. :D

    Have a good one!

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Need to add decimal places to a data value inside of a function

    You're very welcome, and that's awesome

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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