Show Positive and Negative VLOOKUP Results in Different Colors in Excel
Question details
The user wants to display positive and negative VLOOKUP results in different colors.

- 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.
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.
Apply Conditional Formatting to VLOOKUP Results in Excel
Create two rules on the formula cells so positive and negative numbers receive different colors automatically.
Select the range containing the VLOOKUP results you want to format.
Choose Home > Conditional Formatting > Highlight Cells Rules > Greater Than. Enter 0, choose a green format, and click OK.
With the same range selected, choose Home > Conditional Formatting > Highlight Cells Rules > Less Than. Enter 0, choose a red format, and click OK.
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.

Color VLOOKUP Results in WPS Spreadsheets
Open your workbook in WPS Spreadsheets and use conditional formatting to distinguish positive and negative VLOOKUP results.
- 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Select the results: Select the cells containing your VLOOKUP formulas.
- 3. Format positive values: Choose Home > Conditional Formatting > Highlight Cells Rules > Greater Than, enter 0, and select a green format.
- 4. Format negative values: Select the same cells, choose Home > Conditional Formatting > Highlight Cells Rules > Less Than, enter 0, and select a red format.

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.




