Here is a quick excel number formatting tip. If you ever want to format numbers in such a way that it shows decimal values only if the number is less than 1 you can use conditional custom cell formatting (do not confuse with conditional formatting).
Here is an example:

In such cases you can use conditions in custom cell formatting.
First select the numbers you want to format, hit CTRL+1 (or right mouse click > format cells)- In the “Number” tab, select category as “custom”
- Now, write the formatting condition for custom formatting the cell. In our case the condition looks like
[<1]_($#,##0.00_);_($#,##0_). See to the right. what it means is, if the cell value is less than 1 then format the cell in $#,##0.00 format otherwise format as $#,##0. Excel cell formatting is a tricky business and if you want to master it there is no better source than Peltier's article on Custom Number Formats.
More excel tips on formatting:
Formatting numbers in excel - few tips
Custom Cell formatting in Excel - Quick tips
First select the numbers you want to format, hit CTRL+1 (or right mouse click > format cells)















4 Responses to “Currency format Pivot fields with one click [Friday VBA]”
As in your example, I often find myselve having to format numbers as kU, MU,%, or increase/decrease decimals. In the PowerPivot utilities add-in, I have included several such formatting macros and made them available from the pivot table contextual menus. Thanks for you post. It reminds me that formatting as currency is *currently* missing.
The add-in is free and the vba code open.
https://www.sqlbi.com/tools/power-pivot-utilities/
I almost never format my pivot tables. I only format my final chart/table or whatever.
And when I do format them, I go the long distance. Keeps my clicking ability in shape. 🙂
I'm with GraH
I rarely if ever format PT's
Just hover your pointer on field header, it turns into down arrow then click. Entire pivot field gets selected then click on currency($) symbol from home ribbon or Press Ctrl + $(Ctrl + Shift + 4).