+ Reply to Thread
Results 1 to 8 of 8

A formatting quandry...

  1. #1
    Registered User
    Join Date
    09-28-2007
    Posts
    17

    A formatting quandry...

    I can't quite figure out why this is occuring.

    I have a simple formula that is behaving oddly.

    the formula executes simple division and then adds a label.

    As follows,
    Please Login or Register  to view this content.
    Problem is, even though I have the cell format set to "number" with "2" decimal places I still get 16 decimal places!

    You can see the result in the attached file.

    Funny thing is, when i remove the label the resultant reverts back to the proper format!

    ???

    Anybody know of a way to add the label without blowing the format?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Try this:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-28-2007
    Posts
    17
    Quote Originally Posted by StephenR
    Try this:

    Please Login or Register  to view this content.
    Thank you very much Stephen, that did the trick!

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,730
    Here's another way I like.....

    =FIXED(48-D2)&" hours"

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Or use the formula =48-D2 and format as 0.00"hours". That way it's still a number.

  6. #6
    Registered User
    Join Date
    09-28-2007
    Posts
    17
    Quote Originally Posted by shg
    Or use the formula =48-D2 and format as 0.00"hours". That way it's still a number.
    This is not an option for me, or at least I don't know how to accomplish this feat.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Format > Cells > Number > Custom, 0.00"hours"

  8. #8
    Registered User
    Join Date
    09-28-2007
    Posts
    17
    Quote Originally Posted by shg
    Format > Cells > Number > Custom, 0.00"hours"
    Got it!

    Works great, thanks for your help!

+ 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