Custom Number Formats (Multiply & Divide by any Power of 10)

Share

Facebook
Twitter
LinkedIn

In the past here at Chandoo.org and at many many other sites, people have asked the question “How can I display a number Multiplied or Divided by 10, 100, 1000, 1000000 etc, but still have the cell maintain the original number for use in subsequent calculations“.

Typically the answer has been limited to “It can’t be done” or “It can only be done in multiples of 1000”.

Well thanks to a tip I picked up from Kyle who responded to a post here at Chandoo.org they are all wrong.

It is possible to Multiply or Divide any cell contents by any power of 10 using Custom Number Formats !

That is:

How does this work:

When using custom number format we have two possibilities to modify the display number

  1. Use a Comma to divide by 1000; or
  2. Use a % to Multiply by 100

So using a combination of these any power of 10 can be obtained.

So using the correct combination of , and % can result in any power of 10 multiplier we require.

The problem is that using a % adds a % to the number!

The trick which Kyle added is that adding a Ctrl J to the Custom Number format allows us to hide the % signs on a second row of text, then by adjusting the cell to have word wrap and adjusting the row height the second row is not visible.

The Ctrl J must be added after the ,’s and before the %’s

So using the examples above the table is:

The Ctrl J adds a Carriage Return, chr(10), to the Format String.

Finally after applying the Custom Number Format the Cell must be edited to enable Word Wrap.

Select the Cells with the custom Formats, Ctrl 1, Alignment

 

You can see the hidden % symbols if you increase the Row Height.

 

Combination with Regular Custom Formats

These Custom Number Formats can of course still be combined with regular Custom Number Formats, just make sure that the Ctrl J is inserted before the % signs:

No Loss of the Cells Value

It is also worth noting that the original number is still maintained internally in the cell and that cells dependent on the cells don’t have to adjust for the display value.

 

Multi Line Formats

By extension we can now use this technique to add multiple Lines of Text to a Custom Number Format

 

Downloads

You can download a file containing all the above example here: Download Here

 

Other Links to Custom Number Formats

Here:

http://chandoo.org/wp/2008/02/25/custom-cell-formatting-in-excel-few-tips-tricks/

http://chandoo.org/wp/2011/11/02/a-technique-to-quickly-develop-custom-number-formats/

http://chandoo.org/wp/2011/08/19/selective-chart-axis-formating/

http://chandoo.org/wp/2011/08/22/custom-chart-axis-formating-part-2/

http://chandoo.org/wp/tag/custom-cell-formatting/

Elsewhere

http://www.ozgrid.com/Excel/CustomFormats.htm

http://peltiertech.com/Excel/NumberFormats.html

 

Thanx

Just a quick final Thank You to Kyle for highlighting this Custom Number Format feature/trick last week

I look forward to your comments below:

 

 

 

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

7 Responses to “Extract data from PDF to Excel – Step by Step Tutorial”

  1. Jinesh Vasa says:

    Dear Chandoo,

    Thank you very much for this and it is very helpful.
    However, all the Credit Card Statements are now password protected.
    Please advise how can we have a workaround for that

  2. Sivakumar H says:

    Hello sir,
    How to check two names are present in the same column ?
    Thanks and Regards

  3. Ahmed Mallook says:

    Hi, Thank you for the great tip. One problem, when I click on get data >> from file, I don't see the PDF source option. How can I add it?
    I tried to add it from Quick Access toolbar >>> Data Tab, but again the PDF option is not listed there.
    I am using Office 365

  4. PP says:

    Hi, Thank you for your video. I see you used the composite table, but I when I load my pdf, it does not load any composite table. It has 20 tables and 4 pages for one bank statement. I have about 30 bank statements that I want to combine. Your video would work except that I can't get the composite table and each of the tables I do get or the pages does not have all the info. what to do?

  5. Jr. H says:

    Dear Chandoo,
    How do we select multiple amount of tables/pages in one PDF and repeat the same for rest of the PDF;s in the same folder and then extract that data only on power query.

    Thank you

  6. antonlagi says:

    Hi, Thank you for your video. I see you used the composite table, but I when I load my pdf, it does not load any composite table. It has 20 tables and 4 pages for one bank statement. I have about 30 bank statements that I want to combine. nice share

  7. One bank statement takes up 20 tables and four pages in this document. I need to consolidate roughly thirty different bank statements that I have. Your video would be useful if I could only get the composite table, which I can't for some reason, and each of the tables or pages that I can get is missing some information.

Leave a Reply