How can I create a custom number format with all of these criteria?

jno207

New Member
Joined
Jul 11, 2012
Messages
1
Hi,

I am unable to figure out how to create a customer number format for my spreadsheet that will meet the following criteria:

1) Millions display as thousands. E.g., $5,000,000 would display as 5,000

2) Number has a dollar sign sometimes (I only want a $ in front of my subtotal numbers - for the others no dollar sign)

3) Negative numbers are displayed with a standard accounting format (e.g. -$4 would be displayed as $ (4)

4) Zero values are displayed with a - (I don't want a $ in front of the - , just a - )

Can ANYONE please help with this? I have wasted so much time trying to come up with a custom number format in Excel that will meet all of these conditions and can't figure it out.

Thanks!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
To display millions as thousands, you can use the format "0,". To display negative numbers as "$(4)" you can use "$(0,)" assuming the millions-as-thousands rule still applies. If not, remove the comma. To display zero values as "-", just use the format -. I'm not aware of a way to only sometimes use a $ in subtotals, though. If you format the cell as Custom and use:

0,;$(0,);-

you should get 1, 3 and 4 covered. The semi-colons separate the different value types to be formatted, e.g.

Positive_Numbers ; Negative_Numbers ; Zeros ; Text

I left the Text format out since we're just dealing with numbers here.
 
Upvote 0

Forum statistics

Threads
1,215,357
Messages
6,124,482
Members
449,165
Latest member
ChipDude83

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