Function Problems

How to Apply Conditional Formatting to Excel Cells with Values and Percentages

Camila MilosovichCamila Milosovich Oct 29, 2026 869 views

Question details

The user needs to apply conditional formatting to a cell that displays both a numeric value and a percentage, but the concatenated formula output is treated as text.

How to Apply Conditional Formatting to Excel Cells Showing Values and Percentages
Product
Excel
Device & OS
not provided
Scenario
Formatting cells that combine values and percentages using formulas.
Observed behavior
Conditional formatting fails because the concatenated text output cannot be reliably compared as a number by Excel's formatting rules.
Before you start

Ensure you have the original reference cells containing the raw numeric data used for your calculations, as conditional formatting rules will need to reference these rather than the text output.

Solution 1Recommended

Use Underlying Numeric Calculations for Conditional Formatting

Apply conditional formatting rules using the original numeric formula rather than the concatenated text result.

When you combine a number and a percentage in a single cell using the ampersand (&) or CONCATENATE function, Excel converts the result into a text string. Since conditional formatting relies on numeric values for greater-than or less-than comparisons, it cannot evaluate this text. The solution is to base your formatting rule on the hidden numeric calculation.

1
Select the target cells

Highlight the cells containing your combined value and percentage formula.

2
Open Conditional Formatting

Go to the 'Home' tab, click on 'Conditional Formatting' in the Styles group, and select 'New Rule'.

3
Choose formula option

In the New Formatting Rule dialog box, select 'Use a formula to determine which cells to format'.

4
Enter the numeric calculation

Enter the underlying numeric calculation as your formula. For example, if your text formula is based on B4-F4, enter =B4-F4>0 to format positive results.

5
Apply formatting

Click the 'Format' button to choose your desired fill color or font style, then click 'OK' twice to apply the rule.

Use Underlying Numeric Calculations for Conditional Formatting
Formatting Tip: Using the TEXT function in your cell formula, such as =IFERROR(TEXT(B4-F4,"0.00")&" "&TEXT((B4-F4)/B4,"0.00%"),0), ensures the display looks clean while keeping the conditional formatting logic intact.
Advanced Formatting in WPS Spreadsheet

Easily Manage Complex Formulas and Formatting with WPS Office

WPS Spreadsheet provides robust support for complex formulas, TEXT functions, and conditional formatting rules, making it easy to handle cells that combine values and percentages.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your combined formulas.
  2. 2. Access Conditional Formatting: Highlight the target cells and click 'Conditional Formatting' under the Home tab.
  3. 3. Create a new rule: Select 'New Rule' and use the 'Use a formula' option to input your numeric calculation.
  4. 4. Set style and apply: Set your formatting style and click OK to apply the rule seamlessly.
Fully compatible with Microsoft Excel formulas and conditional formattingIntuitive interface for managing multiple formatting rulesFree and lightweight alternative for data analysisSupports advanced TEXT formatting for accounting and percentages
microsoft office alternative - wps office

Frequently Asked Questions

Why does conditional formatting ignore my cell with a number and percentage?

When you combine a number and a percentage using a formula, the output becomes a text string. Conditional formatting rules that look for numeric values (like greater than zero) will ignore text strings.

How can I display accounting format and percentages together?

You can use the TEXT function to format both parts before combining them. For example, use =TEXT(A1, "_($* #,##0.00_)") & " " & TEXT(B1, "0.00%") to display an accounting value alongside a percentage.

Can I format just the percentage part of the text in a cell?

No, conditional formatting applies to the entire cell. If a cell contains a formula outputting text, you cannot apply different colors to different parts of that text string automatically.