简体   繁体   English

带货币符号的数字格式

[英]Formatting of number with currency symbol

I am values in Excel with format (eg ₹18.05 with custom format as [$₹-ur-IN]#,##0.00. There are times when the values are displayed as ₹0.00. In the cases the value happen to be ₹0.00, I want to display blank cell. Please let me know what changes are required in custom format to achieve the same.我是 Excel 中的值,格式为(例如 ₹18.05,自定义格式为 [$₹-ur-IN]#,##0.00。有时值显示为 ₹0.00。在这种情况下,值恰好是 ₹ 0.00,我想显示空白单元格。请让我知道自定义格式需要进行哪些更改才能实现相同的效果。

Thanks谢谢

The format is specified as格式指定为

<Format for positive values>;<Format for negative values>;<Format for zero values>

You can just provide no format for the case where you have a zero:对于零的情况,您可以不提供任何格式:

[$₹-1FAE37]#,##0.00;-[$₹-1FAE37]#,##0.00;

depending how you want to handle any negative values.取决于您要如何处理任何负值。

Semicolon (;) may be a different character in your locale.分号 (;) 在您的语言环境中可能是不同的字符。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM