Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Displaying zeros as dashes on a worksheet
I have a spreadsheet where there are several zeros. I would like the
zeros displayed as dashes (-) but would like this to happen without a VBA function or sub. And, I still need to perform mathematical operations on the cell value...so while it displays as a dash I would like it to be recognized as a zero. Can this be accomplished using the Format features through the interface? Or am I out of luck and going to have to do this through VBA? Thanks for your help, Eric |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Displaying zeros as dashes on a worksheet
You should be able to do this using the Accounting format.
wrote: I have a spreadsheet where there are several zeros. I would like the zeros displayed as dashes (-) but would like this to happen without a VBA function or sub. And, I still need to perform mathematical operations on the cell value...so while it displays as a dash I would like it to be recognized as a zero. Can this be accomplished using the Format features through the interface? Or am I out of luck and going to have to do this through VBA? Thanks for your help, Eric |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Displaying zeros as dashes on a worksheet
Eric,
This can be done with formatting under Format|Cells|Number. Select the Custom format and type in something like the following: 0;0;- The first format is for positive numbers, the second for negative numbers and the third for zeros. John Green wrote in message oups.com... I have a spreadsheet where there are several zeros. I would like the zeros displayed as dashes (-) but would like this to happen without a VBA function or sub. And, I still need to perform mathematical operations on the cell value...so while it displays as a dash I would like it to be recognized as a zero. Can this be accomplished using the Format features through the interface? Or am I out of luck and going to have to do this through VBA? Thanks for your help, Eric |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Displaying zeros as dashes on a worksheet
John Green wrote: Eric, This can be done with formatting under Format|Cells|Number. Select the Custom format and type in something like the following: 0;0;- The first format is for positive numbers, the second for negative numbers and the third for zeros. John Green wrote in message oups.com... I have a spreadsheet where there are several zeros. I would like the zeros displayed as dashes (-) but would like this to happen without a VBA function or sub. And, I still need to perform mathematical operations on the cell value...so while it displays as a dash I would like it to be recognized as a zero. Can this be accomplished using the Format features through the interface? Or am I out of luck and going to have to do this through VBA? Thanks for your help, Eric Thanks for the replies - this is exactly what I was looking for! Eric |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Formatting zeros as dashes | Excel Discussion (Misc queries) | |||
dISPLAYING ZEROS | Excel Discussion (Misc queries) | |||
how to keep all leading zeros when stripping dashes from txt num | Excel Discussion (Misc queries) | |||
Why do the preceding zeros disappear when I remove dashes? | Excel Discussion (Misc queries) | |||
How can SS#s be displayed as text with all zeros and no dashes? | Excel Discussion (Misc queries) |