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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
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,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

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