Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Las Vegas, Nevada, USA
    Posts
    334
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Custom Number Format

    The custom number format \$0.0,, \m causes a number to be displayed as if it has been divided by one million and then followed by the letter "m".

    So 8,704,508 when formatted this way will appear as $0.8 m.

    As is, the format places the $ immediately left of the value. Great for charts but I'd like to apply this to a table.

    I can insert a space in the format code between the $ and the first zero but I'd like to see the $ all the way at the left of the cell instead of immediately in front of the value.

    Is there a way to modify this format so that it left-justifies the $ sign to the left of the cell?

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Try this one.
    Attached Images Attached Images
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Las Vegas, Nevada, USA
    Posts
    334
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Slick! Thanks RG.

    I needed to extend that to cover negative numbers too.

    $* 0.0,, \m;_($* (0.0,,) \m works nicely for me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •