Thanks, protonLeah! I would have responded sooner, but I was away from my computer all day yesterday. I've been busily trying custom number formatting since then.
You definitely put me on the right track. The code you posted worked. I also employed the formula that you recommended. I began converting all of stats worksheets to use these today.
The only problem I encountered is that the custom number format code doesn't allow the numbers or dashes to be aligned in the center of the column. I discovered how to add spaces to the code so that the dash will move to the middle of the column, but that didn't help right away with numbers that aren't zeros.
Through some Googling for custom number format, alignment, etc., I finally found a custom number format in this post on another site which both formats "0"s as dashes, and also allows the numbers and dashes to be aligned in the center using the alignment buttons on the ribbon.
The code is:
I am now using the formula that you recommended, and the custom number format that I found after you pointed me in the right direction. Now everything now works perfectly!!!
Bookmarks