special number format

baha17

Board Regular
Joined
May 12, 2010
Messages
181
Hi Excel Masters,

I tried to find it on net but was a bit out of luck. How can I customize the format of the number as below requirements:
1. If the number is greater or equal to appears with "k": 4,123,567 should be 4,124k
2. If the number is below 0; the number turns to red with no bracelet; -4,123,567 should be 4,124k (this should be RED only no - or bracelet)</SPAN></SPAN></SPAN>
3. As you notice in second requirement, I require “1,000” separator for figures below 0 too.</SPAN></SPAN>
4. No decimal places all rounded up.</SPAN></SPAN>

Below was my custom format but did not work out below 0 figures:</SPAN></SPAN>
Code:
[>=1000] #,##0,"k";[<1000] #,##0;[Red]General</SPAN></SPAN>

Any help?
Thanks
Baha
 
Last edited:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi Rick,
Awesome, it works perfectly fine for me. Thanks for the help.</SPAN>
Cheers,
Baha
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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