Formatting numbers with prohibited characters
问题 Formatting a value to display units adds clarity while retaining the numerical value in the cell. This can be done using: =TEXT(1000,"#,### kW") or via the formatting dialog: Format Cells > Number > Category Custom But some characters are not allowed by either method. How can this be done for units like "kWh" or "kWh/yr" without converting the value to a text type and thereby preventing the value from being used in a calculation? 回答1: Either enclose your string within quotes, or "escape" each