Millions and Thousands in Custom format

ecrodrig

Board Regular
Joined
Jan 21, 2022
Messages
99
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am trying to do a custom format were the output on my cell will be in Millions if is and in thousands, if it isn't


Example : the number 18699 should Come up as 18.7K and 78663.88 should come up as 0.1M

I am sure there is a why of combing the formulas within the Custom format field but I can't seem to make it work.

I've tried this:

[>=1000000] #,##0.0,, "M" ; [<1000000] #,##0.0, "K"

But my answers are all coming up in K its like its disregarding the first condition.

Any help is appreciated. Thanks
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Is the value 78663.88 correct that is 21K away from 0.1M(100,000K) you want to round up to ?
 
Upvote 0
So unless you change the >=value for example >=70000 it will always show as K, the order goes as follows checks first to see if the value is >=1000000 will then round and add M, if not true then everything else is rounded and has K added to it
[>=1000000] #,##0.0,, "M" ; [<1000000] #,##0.0, "K"

so in order to do what you need the custom format needs to be for example
[>=75000] #,##0.0,, "M" ;[<75000] #,##0.0, "K"
you can change the 75000 to anything you want
Book1
BC
21869918.7 K
378663.880.1 M
Sheet1
Cell Formulas
RangeFormula
C2:C3C2=B2
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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