Home

Adding Display Zero as Dashes to Custom Excel Number Format

%3CLINGO-SUB%20id%3D%22lingo-sub-323816%22%20slang%3D%22en-US%22%3EAdding%20Display%20Zero%20as%20Dashes%20to%20Custom%20Excel%20Number%20Format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-323816%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20There%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20currently%20using%20the%20following%20custom%20format%20cells%20for%20my%20number%20display%3A%3C%2FP%3E%3CP%3E%23%2C%23%23%23.0%2C%3B%5BRed%5D(%23.0%2C)%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20add%20to%20this%2C%20so%20that%20when%20a%20value%20is%20%220%22%2C%20a%20dash%20%22-%22%20is%20displayed%20instead%20of%20the%20zero.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20the%20help!%3C%2FP%3E%3CP%3EEmma%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-323816%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormatting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Enumbers%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-323890%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20Display%20Zero%20as%20Dashes%20to%20Custom%20Excel%20Number%20Format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-323890%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Emma%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20check%20out%20this%20%3CA%20href%3D%22https%3A%2F%2Fwww.exceltip.com%2Fexcel-format%2Freplacing-zeros-with-dashes-in-number-formatting.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elink%3C%2FA%3E.%3C%2FP%3E%3CP%3EAs%20described%20in%20the%20link%2C%20you%20can%20use%20the%20below%20custom%20format%20to%20do%20so.%3C%2FP%3E%3CPRE%3E_(*%20%23%2C%23%230_)%3B_(*(%23%2C%23%230)%3B_(*%20%E2%80%9C-%E2%80%9D%3F%3F_)%3B_(%40_)%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20you%20can%20modify%20it%20as%20follows%20to%20show%20a%20dash%20only%20without%20surround%20it%20in%20double%20quotes%3A%3C%2FP%3E%3CPRE%3E_(*%20%23%2C%23%230_)%3B_(*(%23%2C%23%230)%3B_(*%20-%3F%3F_)%3B_(%40_)%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20helps%3C%2FP%3E%3C%2FLINGO-BODY%3E
emmagreen
Occasional Visitor

Hi There,

 

I am currently using the following custom format cells for my number display:

#,###.0,;[Red](#.0,);

 

I would like to add to this, so that when a value is "0", a dash "-" is displayed instead of the zero.

 

Thanks in advance for the help!

Emma

1 Reply

Hi Emma,

 

Please check out this link.

As described in the link, you can use the below custom format to do so.

_(* #,##0_);_(*(#,##0);_(* “-”??_);_(@_)

 

But you can modify it as follows to show a dash only without surround it in double quotes:

_(* #,##0_);_(*(#,##0);_(* -??_);_(@_)

 

Hope that helps

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
48 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies