Closed Thread
Results 1 to 10 of 10

roadway station format

  1. #1
    Registered User
    Join Date
    11-09-2007
    Posts
    66

    roadway station format

    In my engineering work, I need to display the distance along a roadway curve as follows: 2537.43 feet along the arc from the beginning will be displayed as 23+37.43. The red plus sign is a bit misleading. What 23+37.43 really means is 23*100+37.43, where the black plus sign is the usual addition.

    Is there a way to format a cell so that if I type in, say, 913.28 and hit enter, the cell displays "9+13.28" (quotations removed of course)?

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Just add a single ' before the number then Excel will treat it as text, or Format the cell to TEXT first, then enter your "numbers"
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Format the cells as #"+"#0.00

  4. #4
    Registered User
    Join Date
    11-09-2007
    Posts
    66

    Thank you

    Perfect. Exactly what I was looking for. I want the cells to be user friendly so that others using my spreadsheet won't have to type a ' symbol each time they enter a station.

    Thank you both for responding.

    kc

  5. #5
    Registered User
    Join Date
    11-09-2007
    Posts
    66

    one more question actually

    If I enter 46.73, I want it to display as 0+46.73. Is there a way to modify the format #"+"#0.00 to make it work this way for numbers less than 100, also?

    kc

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    0"+"#0.00 or 0"+"00.00, as you prefer.

  7. #7
    Registered User
    Join Date
    11-09-2007
    Posts
    66

    Thanks

    Sweet! It works great. Thank you so much.

    kc

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You're welcome

    Pretty arcane notation ...

  9. #9
    Registered User
    Join Date
    03-07-2023
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Office 365
    Posts
    1

    Lightbulb Re: roadway station format

    The easiest way I've found to accomplish this task of having excel calculate the distance between stationing is to simply cut and paste the following line as your formula:

    =SUBSTITUTE(D4,"+","")-SUBSTITUTE(C4,"+","")

    Then, change the "D4" part of the formula to whichever is the greater stationing in your table (5174+23) example; and then, change the "C4" to the lesser stationing in your table (5012+12) example; you wish to subtract.

    You may also "add" as opposed to subtracting stations by simply changing the "-" to a "+" in front of the second SUBSTITUTE.

    Hope this helps as a really much easier way to find the difference between stations, or to add stations.

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,973

    Re: roadway station format

    @SirExcellency
    Welcome to the Forum.
    You have responded to a thread that is 16 years old. It is highly unlikely that the OP is still interested in this post. Suggest if you are willing to help here that you concentrate on current posts. I am closing this thread as it is stale.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed 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