Format Positive and Negative TEXT Formula Results in Excel
Question details
Format positive and negative values in a concatenated Excel formula result and make negative results red.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A cell combines the label CY with a formatted sum of values in W3:W30.
- Observed behavior
- The TEXT function can control the number's appearance, but it cannot apply font color to only the numeric portion of a concatenated formula result.
Identify the cell containing the formula and confirm that W3:W30 is the range you want to sum. If your source range differs, replace it consistently in both the formula and the conditional formatting rule.
Use TEXT and conditional formatting for the complete result
Display negative sums in parentheses and color the entire formula result red when the sum is below zero.
In the result cell, enter ="CY - "&TEXT(SUM(W3:W30),"$#,##0_);($#,##0)") and press Enter. Positive values display with a dollar sign; negative values display in parentheses.
Select the result cell, then choose Home > Conditional Formatting > New Rule. Select Use a formula to determine which cells to format.
Enter =SUM(W3:W30)<0 in the rule formula box.
Click Format, open the Font tab, select red, and click OK. Click OK again to save the rule.

Format positive and negative results in WPS Spreadsheets
Use a TEXT formula in WPS Spreadsheets to display the sum, then apply conditional formatting to make the complete result red when it is negative.
- 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Enter the formula: Select the result cell and enter ="CY - "&TEXT(SUM(W3:W30),"$#,##0_);($#,##0)"). Adjust the range if needed.
- 3. Add a rule: With the result cell selected, choose Home > Conditional Formatting > New Rule and select the option to use a formula.
- 4. Set the condition and color: Enter =SUM(W3:W30)<0, choose a red font in the rule's formatting options, and confirm the rule.

Frequently Asked Questions
Can the TEXT function make a negative value red?
TEXT controls the characters displayed, but it does not apply font color to the result. Select the result cell and use Home > Conditional Formatting to set a red font when the sum is negative.
Can I color only the number in the concatenated formula result?
No. Excel cannot apply separate font colors to portions of a formula-generated text string. Put the label and numeric result in separate cells if they need different colors.
Why does the conditional formatting rule check SUM(W3:W30)?
The result of the concatenated formula is text, so the rule checks the underlying numeric sum instead. Use =SUM(W3:W30)<0, replacing the range with the one used in your formula.
How do I show negative sums in parentheses?
Use a two-section number format in TEXT, such as "$#,##0_);($#,##0)". The first section formats positive values and the second formats negative values.




