+ Reply to Thread
Results 1 to 2 of 2

Custom Cell Format: Scientific notation, dash for 0 and no alignment specifications

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Custom Cell Format: Scientific notation, dash for 0 and no alignment specifications

    Hello,

    I am trying to create a custom cell format that presents the numbers in scientific notation (0.00E+00) and uses a dash (-) for entries that are zero. The closest thing I could get was by modifying some of the accounting formats. It works however it right justifies the numbers and it will not change the alignment no matter what I set the cell to. It looks like it overrides the "normal" cell alignment and makes it right justified. Also, I do not want the values to line up with the decimal points. The actual numbers already do this but when it is a zero and the dash is displayed, the dash is offset to be directly under the +/- sign of the scientific notation.

    I am not familiar enough with the custom number syntax to figure this out. Below is what I'm starting with but it has the mandatory right justified alignment and dash offset. Any help is appreciated. Thanks.

    _(* 0.00E+00_);_(* -0.00E+00_);_(* "-"??_)



    Edit:

    I actually just figured it out. I removed the astrixes and that seemed to work. I sort of understand some of the syntax but I have some questions. I get the underscore part. The semi-colons seam to create a way to develop formatting for positive, negative and zero numbers in that order. Is that correct and is the primary/only usage? Also, what significance to the question marks have? Removing them does not seem to change the display.

    Below is what I got to work.

    _(0.00E+00_);_(-0.00E+00_);_("-"??_)
    Last edited by lwflip; 10-17-2012 at 12:27 AM.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,416

    Re: Custom Cell Format: Scientific notation, dash for 0 and no alignment specifications

    If you have not yet read through the help page for number format codes, I would suggest you start there http://office.microsoft.com/en-us/ex...005198679.aspx http://office.microsoft.com/en-us/ex...in=HP005198679 If that doesn't answer your questions, refer to the part that is not making sense and we will help you understand

+ 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