Custom Format Cells Formulas

banneduser123

Banned - Rules violations
Joined
Mar 29, 2006
Messages
181
Hi,


I need the following to happen

column A contains numbers....
in column B, I am trying to input a formula for custom format: so that the numbers will appear as such

column A: 32,458,000 ; column B will show +32MM
column A: -100,000 ; column B will show -100K

im currently using the below formula, but it doesn't give me the + or - sign

[>=1000000] #,##0.00,,"MM";[>0] #,##0,"K";General


in column
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
format numbers in +/- K's and +/- MM's

I would like to display 110,587 (cell A1) as +111K (cell A2); and -1,678,400 (cell B1) as -1.68MM (cell B2)

does anyone know how to accomplish this?
 
Upvote 0
Re: format numbers in +/- K's and +/- MM's

And just to be clear, do you want this to be flexible ?
So for example, if you change the value in A1 from 110,587 to, say, 11,058,700, do you want it to then show 11.06MM ?
 
Upvote 0
Re: format numbers in +/- K's and +/- MM's

Adapting your format from your OP, this will give you the +sign . . .

[>=1000000] +#,##0.00,,"MM";[>0] +#,##0,"K";General

Still working on the negative scenario . . .
 
Upvote 0
Re: format numbers in +/- K's and +/- MM's

Hi,

It is my believe what you're trying to do is not achievable by Cell Formatting, you can't have all four, +#.##MM and +#.##K and -#.##MM and -#.##K custom formats at the same time.

Have a look here: The Definitive Guide to Custom Number Formats in Excel - Excel Tactics

May be someone can come up with a VBA solution for you.

Or, you can do this with a formula; however, the results will be Text representations of the values. If it's meant for display purposes only, then you may consider the formula option.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,756
Members
448,990
Latest member
Buzzlightyear

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