Formula to change a cell with - to 0

fostertiname

New Member
Joined
Jun 8, 2018
Messages
6
Hello Excel gurus! I know there's some formula that will find all cells with - and make it a zero. Currently when I excel from Q.Books, the result of any GL account that is zero will show up as "-". I need to change that to a zero. Don't think I'd be able to just use "replace", right? When I tried to, because the cell is not set up as General, it wasn't working for me...
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
The cells are probably formatted as Accounting. With the Accounting format, "-" is used to indicate zero.

You can customize the Accounting format. Select cells, right-click and click Format Cells. Click the Number tab, then click Custom. You will probably see something like the following:

_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)

Change to format to one of the following, depending on your intent

_($* #,##0.00_);_($* (#,##0.00);_($* 0??_);_(@_)

or

_($* #,##0.00_);_($* (#,##0.00)

depeding on how you want zero to appear.
 
Last edited:
Upvote 0
The cells are probably formatted as Accounting. With the Accounting format, "-" is used to indicate zero.

You can customize the Accounting format. Select cells, right-click and click Format Cells. Click the Number tab, then click Custom. You will probably see something like the following:

_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)

Change to format to one of the following, depending on your intent

_($* #,##0.00_);_($* (#,##0.00);_($* [COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=000]#000[/URL] 0ff]0[/COLOR]??_);_(@_)

or

_($* #,##0.00_);_($* (#,##0.00)

depeding on how you want zero to appear.

Sweet, let me give that a whirl. It's nice to be in the presence of such talent. Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,657
Messages
6,126,062
Members
449,286
Latest member
Lantern

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