+ Reply to Thread
Results 1 to 2 of 2

Custom Number Formatting

  1. #1
    Registered User
    Join Date
    08-08-2007
    Location
    Bethesda,MD
    Posts
    1

    Custom Number Formatting

    Hi all,

    I am interested in having my excel sheet reflect my prices in /32's so i did the format that i saw while browsing the interenet which is "# ??/32" The issue arrives when the number above in the equation is not a fixed number. So for example:

    Price(Decimal) | Price(32's) | Excel Output
    97.484375 97-15.5/32 97-16/32 ====> So thats a pretty big issue

    97.53125 97-17/32 97-17/32 ====> Only work when number is not a decimal...


    So thats is my issue, hope somebody can help me out. Thanks a lot!


    Ferrari_99

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    If you don't need to do math on the output, then instead of a custom format you can try the formula:

    =INT(A1)&"-"&TEXT((A1-INT(A1))*32,"##.0")&"/32"

    This will create a text string in the format you're looking for (e.g. 97-15.5/32).

+ 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