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
 

Some videos you may like

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

banneduser123

Banned - Rules violations
Joined
Mar 29, 2006
Messages
181
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?
 

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,115
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 ?
 

banneduser123

Banned - Rules violations
Joined
Mar 29, 2006
Messages
181

ADVERTISEMENT

Re: format numbers in +/- K's and +/- MM's

Correct, but I would it to show +11.06MM
 

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,115
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 . . .
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
5,423
Office Version
  1. 2016
Platform
  1. Windows
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:

banneduser123

Banned - Rules violations
Joined
Mar 29, 2006
Messages
181
Understood. Can you help with the formula. I can also post a new thread looking for vba....
 

Watch MrExcel Video

Forum statistics

Threads
1,122,961
Messages
5,599,061
Members
414,281
Latest member
Engjamal2021

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
Top