+ Reply to Thread
Results 1 to 3 of 3

format cell : "Z#.####" minus position issue.

Hybrid View

  1. #1
    Registered User
    Join Date
    04-29-2010
    Location
    belgium
    MS-Off Ver
    Excel 2003
    Posts
    12

    format cell : "Z#.####" minus position issue.

    Hello Everyone.

    The problem concerns the cell's category, and the minus position.
    These are the kind of values i put into a column :

    5
    1.00
    -3.25
    15.7584234786541
    ect...

    I'm trying to find a solution to get this kind of format for this column :

    Z5.
    Z1.
    Z-3.25
    Z15.7584

    In other words :
    - all cells must be preceeded by a "Z"
    - if there is a minus sign, it must be BEHIND the Z
    - the decimal separation is a point
    - the point is always there, even if there is no decimal
    - the maximum of decimals is 4.

    I nearly had it, with this : Z#.####
    (in format cells -> category -> custom -> type)

    The only problem is the minus sign : it always go in front of the Z.
    (for those interested, I need this for creating some G-Code for CNC milling. Z-1. indicates a position to the mill). The mill does not understand -Z1.)

    The same problem could be imagined with a currency : -€1.12 or €-1.12

    Any solution ?

    Thanks for all help.
    Last edited by jazzaman; 05-27-2011 at 04:00 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: format cell : "Z#.####" minus position issue.

    Close - you need:
    Z#.####;Z-#.####
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    04-29-2010
    Location
    belgium
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: format cell : "Z#.####" minus position issue.

    thanks a lot Romper, that worked great.

    Have a nice day,

    jazz

+ 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