Formatting Issues

Bold an Entire Excel Row When a Lookup Formula Returns a Result

John WilsonJohn Wilson Dec 2, 2026 869 views

Question details

Bold each complete row when a lookup formula in its Reference column returns a nonempty result.

Bold an Entire Excel Row When a Lookup Formula Returns a Result
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains product lookups in a Reference column, and matching rows need to stand out.
Observed behavior
Rows with nonempty lookup results should appear in bold, while rows whose lookup formulas return an empty string should remain unchanged.
Before you start

Identify the Reference column and the first data row. In the example below, lookup results are in column E and the data range starts at row 2; adjust the references to match your worksheet.

Solution 1Recommended

Use a Formula-Based Conditional Formatting Rule in Excel

Apply bold formatting across each row whose Reference cell contains a nonempty lookup result.

1
Select the data range

Select A2:E10000, or your full data range, with A2 as the active cell.

2
Create a formula rule

On the Home tab, select Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.

3
Enter the condition

In the formula box, enter =LEN($E2)>0. Replace E with your Reference column and 2 with the first selected data row if needed.

4
Set bold formatting

Select Format, open the Font tab, choose Bold, and select OK. Select OK again to create the rule.

5
Check the applied range

Go to Home > Conditional Formatting > Manage Rules and confirm that Applies to covers the full range, such as =$A$2:$E$10000.

How the reference works: The dollar sign locks column E, while the relative row number lets each row check its own Reference cell. A formula returning an empty string is not bolded.
Format lookup results in WPS

Bold Rows Based on Lookup Results in WPS Spreadsheets

Use a formula-based conditional formatting rule in WPS Spreadsheets to bold each row when its Reference cell contains a lookup result.

  1. 1. Open and select your data: Open the workbook in WPS Spreadsheets and select A2:E10000, with A2 as the active cell.
  2. 2. Add a conditional rule: On the Home tab, open Conditional Formatting, choose New Rule, and select the option to use a formula to determine which cells to format.
  3. 3. Enter the formula: Enter =LEN($E2)>0 in the formula box, adjusting the column and first row to match your data.
  4. 4. Apply bold: Open the rule's Format settings, choose Bold under Font, and confirm the settings to apply the rule.
Highlight entire rows based on lookup resultsOpen and edit Microsoft Excel XLSX filesUse familiar spreadsheet formatting tools
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula use $E2 instead of E2?

The dollar sign keeps the rule pointed at column E across the selected range. The row number remains relative so each row checks its own Reference cell.

Will a lookup formula returning an empty string make the row bold?

No. LEN($E2)>0 is false when the lookup formula returns an empty string, so the rule does not apply bold formatting.

How do I include more columns in the bold formatting?

Open Home > Conditional Formatting > Manage Rules and expand the Applies to range, for example from =$A$2:$E$10000 to =$A$2:$H$10000. Keep the formula pointed at the Reference column.

What if the lookup returns an error instead of a blank?

LEN cannot evaluate an error result. If lookup errors should not trigger bold, use =IFERROR(LEN($E2)>0,FALSE) in the conditional formatting rule.