+ Reply to Thread
Results 1 to 9 of 9

Number Formatting 2.5 to 2,500

  1. #1
    Registered User
    Join Date
    05-02-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    Number Formatting 2.5 to 2,500

    I have a data set where the raw data is in millions (2.5= 2,500,000) and on a aggregated level this is fine. However the number formatting on one pivot table in the report makes it difficult to see the data. Is it possible to turn 2.5 into 2,500 using formatting rather than editing the raw data or creating a new column of data at that level?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Number Formatting 2.5 to 2,500

    It is fairly straightforward to show 2500000 as 2.5 (format code "0.0,,"). Unfortunately, as far as I know (and I have been hoping for it for a long time), the opposite operation like you describe is not available. I will be happy to learn that it has been added to a recent version of Excel, but am not optimistic that it has.

    This is a case where I think your best approach will be to edit the source data for the pivot table to be 2500000, then use formatting to display as 2.5 or 2500 or however you want it displayed. Whether in the source data or after pivoting, the only way I know of to get 2.5 (meaning 2.5 million) to show as 2500 or 2500000 is to actually multiply the value to by 1000 or 1000000.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Number Formatting 2.5 to 2,500

    Please try custom format #,0, to show 2,500

  4. #4
    Registered User
    Join Date
    05-02-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    Re: Number Formatting 2.5 to 2,500

    Bo_Ry

    The original number is 2.5 but has a value of 2,500,000. That format would bring 2,500,000 to 2,500 but what I am trying to do is multiply the original 2.5 by 1000 using formatting.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Number Formatting 2.5 to 2,500

    Assuming 2.5 is in cell A1
    1. Enter this number in cell B1: 1000000

    2. Now copy cell B1 and go to Paste Special, click on Multiply radio button.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Number Formatting 2.5 to 2,500

    Here's one possible solution - it's a bit complicated but might do what you want.

    In number formats, the comma (,) displays the number as if it were divided by 1000 - so 39000000 becomes 39000 for example.
    Making a number a percentage using the percent sign (%) displays the number as if it were multiplied by 100 - so 4.8 becomes 480% for example.
    It is possible to use multiples of these, so two commas (,,) will make 39000000 display as 39, or two percent signs (%%) will make 4.8 display as 48000.
    Combining these 'divide by 1000' and 'multiply by 100' options allows any multiple of 10 to be obtained.
    In your case, to 'multiply' by 1000000 you don't need the commas, just three % signs, in other words, this custom format:
    #,###%%%
    If you do that, you'll immediately notice a problem - the three % signs also display, so instead of getting 2,500,000 as you want, you get 2,500,000%%%.
    Luckily there's a trick to hide them. Go back to your custom number formatting and put your cursor just before the %%% signs:
    #,###¦%%%
    With the cursor there, press Ctrl-J to enter a carriage return.
    #,###Ctrl-J%%%
    The number format will appear to change to just #,### but actually it's on two lines:
    #,###
    %%%

    You now need to turn 'Word Wrap' on in your data cells and adjust the column width to show just the number - in other words, force the %%% to wrap on to the next line down, where you won't see it. If you have rows which are two lines high, or more, just enter another Ctrl-J for each line.

    I hope that makes sense!
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Number Formatting 2.5 to 2,500

    Please try custom format
    0\,0\00 %
    click in front of % and press Alt + 0 0 1 0 to put % to next line > OK

    Untitled.jpg

    Then press Warp text

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Number Formatting 2.5 to 2,500

    For Pivots I'd go with MrShorty's approach. If pivot is based on Excel Range and not from Data model (OLAP), then you can add calculated field.
    Ex: ='Value Column'*1000
    Add calculated field to pivot instead of original value column and format as number with thousand separator and no decimal.

    If it's based on Data model, you can add DAX measure to do the same (or perform transformation in PowerQuery).
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  9. #9
    Registered User
    Join Date
    05-02-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    3

    Re: Number Formatting 2.5 to 2,500

    That did the trick, thanks!

+ 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. number-comma-number formatting problem. Thousands, and string
    By JimmyWilliams in forum Excel General
    Replies: 1
    Last Post: 11-28-2017, 06:35 PM
  2. [SOLVED] Apply formatting if a number repeats in one of the three cells following this number
    By ×_× in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-02-2015, 10:57 AM
  3. [SOLVED] Add leading zeroes to number, number formatting
    By YOO629 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2015, 04:26 AM
  4. Number Formatting and Conditional Formatting
    By morayman in forum Excel General
    Replies: 1
    Last Post: 01-23-2014, 04:03 AM
  5. Conditional Formatting quirk with Number formatting
    By ChemistB in forum Excel General
    Replies: 9
    Last Post: 07-20-2011, 08:44 AM
  6. Replies: 3
    Last Post: 02-12-2009, 01:08 PM
  7. formatting cell number based on previous cell number
    By Pasquini in forum Excel General
    Replies: 3
    Last Post: 06-20-2006, 01:40 AM

Tags for this Thread

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