+ Reply to Thread
Results 1 to 12 of 12

Custom format not working (for millions notation)

  1. #1
    Registered User
    Join Date
    09-13-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Custom format not working (for millions notation)

    Hi all

    Something easy turned out to be impossible. I want 2000000 (2 million) to display as $2M. What I did was Format Cells > Number > Custom and typed $#.##0,,"M". Then my value is displayed as $2000000.,,M.

    I've also tried "$#.##0,,"M". With and without "". Nothing. The closest I can get is when I use variations of #,######"M". This displays the value as 2,000000M, which defeats the purpose.

    I've also tried numerous other variations as available on Google, but clearly I'm missing something. It's driving me nuts.
    Last edited by PinkGecko; 09-13-2013 at 08:08 AM.

  2. #2
    Registered User
    Join Date
    11-27-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Custom format not working (for millions notation)

    $#.."M" should do the trick I think.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Custom format not working (for millions notation)

    Try:

    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    09-13-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Custom format not working (for millions notation)

    BJE: $#.."M" displays 2 million as $2000000..M

    OllyXLS: $#,##0,,"M" displays my 2 million as $2000,000,,M


  5. #5
    Registered User
    Join Date
    11-27-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Custom format not working (for millions notation)

    Quote Originally Posted by PinkGecko View Post
    BJE: $#.."M" displays 2 million as $2000000..M

    OllyXLS: $#,##0,,"M" displays my 2 million as $2000,000,,M

    2000000 displays as $2M but 2 000 000 displays $2000000..M as you mentioned, so the spaces between the numbers seem to be the issue here.

  6. #6
    Registered User
    Join Date
    09-13-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Custom format not working (for millions notation)

    Quote Originally Posted by BJE View Post
    2000000 displays as $2M but 2 000 000 displays $2000000..M as you mentioned, so the spaces between the numbers seem to be the issue here.
    No there's no spaces. I just typed it like that for readability.

  7. #7
    Registered User
    Join Date
    11-27-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Custom format not working (for millions notation)

    Quote Originally Posted by PinkGecko View Post
    No there's no spaces. I just typed it like that for readability.
    Strange, it is working allright here.You might want to try to change the . into , and see if that helps.

  8. #8
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Custom format not working (for millions notation)

    Try the attached. How does cell A1 display to you?
    Attached Files Attached Files

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,468

    Re: Custom format not working (for millions notation)

    $#,,"M"

    or this if your regional setting for Thousands separator is a period
    $#.."M"
    Cheers
    Andy
    www.andypope.info

  10. #10
    Registered User
    Join Date
    09-13-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Custom format not working (for millions notation)

    @OllyXLS:

    Finally! Thank you. I copied your $# ##0 "M". But it's different than all the suggestions of $#.."M" and $#,##0,,"M". The cells I'm applying it to, is a monetary value multiplied by a number, so not sure what the issue was.

    @Andy Pope: we don't use a thousands seperator at all, perhaps that's why OllyXLS's way worked?

  11. #11
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Custom format not working (for millions notation)

    Quote Originally Posted by PinkGecko View Post
    @OllyXLS:

    Finally! Thank you. I copied your $# ##0 "M". But it's different than all the suggestions of $#.."M" and $#,##0,,"M". The cells I'm applying it to, is a monetary value multiplied by a number, so not sure what the issue was.

    @Andy Pope: we don't use a thousands seperator at all, perhaps that's why OllyXLS's way worked?

    Great - what this tells me is that your local settings use a space as a thousand seperator. The format applied in my attachment was $#,##0,,"M" - and Excel has translated that format into your locale settings.

    Glad it worked for you.

  12. #12
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,468

    Re: Custom format not working (for millions notation)

    we don't use a thousands seperator at all
    you do, but as OllyXLS says you use space. It's the reason I mentioned "regional setting", although I did not guess it was a space rather than comma or period

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Custom Format Not Working - Need Leading Zero
    By Karen615 in forum Excel General
    Replies: 1
    Last Post: 06-26-2013, 02:44 PM
  2. Replies: 1
    Last Post: 10-17-2012, 09:18 AM
  3. Custom Number format to get scientific notation and percent
    By lwflip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2012, 09:53 AM
  4. Custom Formatting to round to millions
    By Scorpvin in forum Excel General
    Replies: 4
    Last Post: 03-01-2007, 01:53 PM
  5. Custom format for scientific notation
    By Melinda in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-22-2005, 12:00 PM

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