Format Cells > Custom to show numbers in millions, thousand and hundreds

Rainbow_P

New Member
Joined
May 6, 2022
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Good day!


[>999999]$ #.0,,"M";$#," K"

Format Cells > Number > Custom

Above is the line that I am using for custom format. For example, with the cell value 1234567, when the format applied, it will show 1.2M. (cell value 1234, it shows $1K)

If the cell value is 123, it shows "$ K".

Is there a way to let it show in hundred too? For example when the cell value is 123, it shows "1 Hrd."

Thank you.


p.s. I've tried [>999999]$ #.0,,"M";$#," K";$0.0," Hrd" but it seems the condition only limited to millions and thousands only.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
If I understand the need then use nested if statements. If the value is in B10 then this formula should work.

=IF(B10>=10^6,B10/10^6&" M", IF(B10>=10^3,B10/10^3& " K", IF(B10>=100, B10/100 & " Hrd", "") ) )

FormatValuesOrdersOfMagnitude.xlsm
BC
1012000001.2 M
1112001.2 K
121201.2 Hrd
Sheet1
Cell Formulas
RangeFormula
C10:C12C10=IF(B10>=10^6,B10/10^6&" M", IF(B10>=10^3,B10/10^3& " K", IF(B10>=100, B10/100 & " Hrd", "") ))
 
Upvote 0
If I understand the need then use nested if statements. If the value is in B10 then this formula should work.

=IF(B10>=10^6,B10/10^6&" M", IF(B10>=10^3,B10/10^3& " K", IF(B10>=100, B10/100 & " Hrd", "") ) )

FormatValuesOrdersOfMagnitude.xlsm
BC
1012000001.2 M
1112001.2 K
121201.2 Hrd
Sheet1
Cell Formulas
RangeFormula
C10:C12C10=IF(B10>=10^6,B10/10^6&" M", IF(B10>=10^3,B10/10^3& " K", IF(B10>=100, B10/100 & " Hrd", "") ))

@OaklandJim, thank you for your reply!

However I wish for a solution in cell's custom format, not a formula.

1663858265277.png
 
Upvote 0
I'm pretty sure that you can not do what you want with number formatting. BUT, I am not an expert. Doesn't the formula provided give the values that you want in the format that you want?
 
Upvote 0
I'm with OaklandJim, you cannot use that type of format for 100s.
 
Upvote 0
I'm pretty sure that you can not do what you want with number formatting. BUT, I am not an expert. Doesn't the formula provided give the values that you want in the format that you want?
@OaklandJim, thanks again for the reply - I was just looking for a solution other than formula. :)

Wish all a nice weekend!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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