when I write "+0", excel writes "-"

learning_grexcel

Active Member
Joined
Jan 29, 2011
Messages
319
Hi,
When I feed number into excel like "+0", in some cell it writes as "0" and in some cell it writes as "-". Actually I want 0, not -
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
If you want the "-" when the value 0 is in a cell, you can either make it accounting format with no dollar symbol. Or you can give it the custom number format:

Code:
General;General;"-"

Although I'm kind of particular to putting a couple of spaces after the "-" to bring it off the edge of the cell:

Code:
General;General;"-"??
 
Upvote 0
if you put an apostrophe " ' " in front of whatever you put into a cell, it will not use it as a formula, just text
 
Upvote 0
If you want the "-" when the value 0 is in a cell, you can either make it accounting format with no dollar symbol. Or you can give it the custom number format:

Code:
General;General;"-"

Although I'm kind of particular to putting a couple of spaces after the "-" to bring it off the edge of the cell:

Code:
General;General;"-"??

Thank you but I can't understand what you mean........
 
Upvote 0
Right click on the cell and go to Format Cells. In this window, make sure you are on the "Number" tab. Under category, click on "Custom". This is where you can define a custom number format. The two pieces of code I supplied are two separate custom number formats that will show a "-" for a value of 0. Try each of them and see which one you like best (the second one will just move the "-" to the left two spaces so it isn't right on the edge of the cell.)
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,874
Members
452,949
Latest member
Dupuhini

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