Formatting Issues

Show Positive and Negative VLOOKUP Results in Different Colors in Excel

Amos GikundaAmos Gikunda Nov 22, 2026 869 views

Question details

The user wants to display positive and negative VLOOKUP results in different colors.

Show Positive and Negative VLOOKUP Results in Different Colors in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet uses VLOOKUP formulas, and the user wants positive results to appear green and negative results to appear red.
Observed behavior
Positive formula results should be formatted in green and negative results in red.
Before you start

Identify the cells containing the VLOOKUP formulas and check that their results are numbers. Decide whether you want to color the font or the cell fill.

Solution 1Recommended

Apply Conditional Formatting to VLOOKUP Results in Excel

Create two rules on the formula cells so positive and negative numbers receive different colors automatically.

1
Select the formula cells

Select the range containing the VLOOKUP results you want to format.

2
Create the positive rule

Choose Home > Conditional Formatting > Highlight Cells Rules > Greater Than. Enter 0, choose a green format, and click OK.

3
Create the negative rule

With the same range selected, choose Home > Conditional Formatting > Highlight Cells Rules > Less Than. Enter 0, choose a red format, and click OK.

4
Check the colors

Review the selected cells. If you want colored text rather than colored fills, edit each rule through Home > Conditional Formatting > Manage Rules and choose a custom font color.

Apply Conditional Formatting to VLOOKUP Results in Excel
Zero and text results: These rules do not color zero. If a VLOOKUP returns a number stored as text, add +0 to the formula, for example: =VLOOKUP(D2,CMC!$B$2:$O$1321,11,FALSE)+0. This converts numeric text to a number, but nonnumeric text produces an error.
Format formula results in WPS Spreadsheets

Color VLOOKUP Results in WPS Spreadsheets

Open your workbook in WPS Spreadsheets and use conditional formatting to distinguish positive and negative VLOOKUP results.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 2. Select the results: Select the cells containing your VLOOKUP formulas.
  3. 3. Format positive values: Choose Home > Conditional Formatting > Highlight Cells Rules > Greater Than, enter 0, and select a green format.
  4. 4. Format negative values: Select the same cells, choose Home > Conditional Formatting > Highlight Cells Rules > Less Than, enter 0, and select a red format.
Highlight positive and negative formula results with separate rulesOpen and save Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interfaceWork with spreadsheets using free WPS Office tools
microsoft office alternative - wps office

Frequently Asked Questions

Why aren't my VLOOKUP results changing color?

Check Home > Conditional Formatting > Manage Rules to make sure both rules apply to the result cells. The results must also be numeric; if VLOOKUP returns numeric text, adding +0 to the formula can convert it.

Will these rules color a result of zero?

No. Greater Than 0 and Less Than 0 exclude zero. To format it, select the cells and add an Equal To rule for 0 under Home > Conditional Formatting > Highlight Cells Rules.

Can I change the font color instead of the cell fill?

Yes. In Excel, select the cells, open Home > Conditional Formatting > Manage Rules, and edit each rule. Choose a custom format and set the font color to green or red.

What happens if VLOOKUP returns text that is not a number?

Adding +0 to nonnumeric text produces an error. Check the value in the lookup table and convert or correct it only if it is meant to be numeric.