Abbreviated formatting of numbers in Excel - Negative numbers not right - custom formatting

parkerbelt

Active Member
Joined
May 23, 2014
Messages
377
So, I'm using custom formatting to show -$1,200,000 as -$1.2M, but Excel is showing it as -$1200K.

Here's the custom formatting that I'm using:
[<999950]$0,"K";[<999950000]$0.0,,"M";$0.0,,,"B"

The weird thing is that when I do a positive number, like $1,300,000, it shows up as $1.3M, which is what I want.

Negative numbers are the only one's affected.

Does anyone know how to fix this?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Any negative number is less than 999950, so your first format will apply. You will have to use a conditional format to apply separate number formats based on the values, as you can only have 2 condition sections in a custom number format.
 
Upvote 0
That's because a negative number is less than 999950. Custom number formats are limited to four zones (typically positive, negative, zero and text) so you won't be able to achieve what you're trying to do.
I'd suggest using the TEXT function in a helper column, or using VBA to modify the format of each cell.
 
Upvote 0
Thanks guys! You wouldn't happen to know the conditional formatting formula that would make that happen or some other way to accomplish what I'm trying to do, would you?
 
Upvote 0
Apply a CF using Cell Value is < 0 and use that custom number format but reversing the two conditions and negating both values.
 
Upvote 0
Apply a CF using Cell Value is < 0 and use that custom number format but reversing the two conditions and negating both values.

That worked for formatting the number, but the chart that I have built off of that number changed to the un-abbreviated number. Is there a way to fix that?
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,704
Members
449,048
Latest member
81jamesacct

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top