Bold an Entire Excel Row When a Lookup Formula Returns a Result
Question details
Bold each complete row when a lookup formula in its Reference column returns a nonempty 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.
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.
Use a Formula-Based Conditional Formatting Rule in Excel
Apply bold formatting across each row whose Reference cell contains a nonempty lookup result.
Select A2:E10000, or your full data range, with A2 as the active cell.
On the Home tab, select Conditional Formatting > New Rule, then choose Use a formula to determine which cells to format.
In the formula box, enter =LEN($E2)>0. Replace E with your Reference column and 2 with the first selected data row if needed.
Select Format, open the Font tab, choose Bold, and select OK. Select OK again to create the rule.
Go to Home > Conditional Formatting > Manage Rules and confirm that Applies to covers the full range, such as =$A$2:$E$10000.
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. Open and select your data: Open the workbook in WPS Spreadsheets and select A2:E10000, with A2 as the active cell.
- 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. Enter the formula: Enter =LEN($E2)>0 in the formula box, adjusting the column and first row to match your data.
- 4. Apply bold: Open the rule's Format settings, choose Bold under Font, and confirm the settings to apply the rule.

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.




