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

Rainbow_P

New Member
Joined
May 6, 2022
Messages
21
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

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
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,215,046
Messages
6,122,855
Members
449,096
Latest member
Erald

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