Formatting Issues

How to Highlight Missing Data Using Conditional Formatting in Excel

Huda QurayshiHuda Qurayshi Oct 26, 2026 869 views

Question details

The user needs to set up two independent conditional formatting rules to highlight missing values in columns G and M whenever related invoice or payment data is present in other designated columns.

How to Highlight Missing Data Using Conditional Formatting in Excel
Product
Excel
Device & OS
not provided
Scenario
Tracking invoice and payment information where certain fields must be completed if related fields contain data, using visual color warnings for blank cells.
Observed behavior
The conditional formatting needs to evaluate multiple columns accurately without linking the invoice and payment rules together, successfully applying a fill color only to the targeted blank cells.
Before you start

Verify the exact row number where your data selection begins (e.g., Row 2). Your conditional formatting formulas must reference this starting row to apply accurately across the entire range.

Solution 1Recommended

Set Up Independent Formula Rules for Columns G and M

Use two separate formula-based conditional formatting rules to evaluate your invoice data and payment data independently.

By creating independent rules, you ensure that the logic for your invoices (which evaluates columns D through F) does not interfere with the logic for your payments (which only evaluates column L). The combination of AND/OR statements allows you to specify exactly when a blank cell should trigger a warning.

1
Select the Target Range for Column G

Highlight the cells in column G that you want to monitor for missing invoice data. Make sure to start your selection from the first row of actual data, such as G2.

2
Create a New Conditional Formatting Rule

Navigate to the Home tab on the ribbon. Click on Conditional Formatting, then select New Rule from the dropdown menu.

3
Enter the Formula for Column G

Select 'Use a formula to determine which cells to format'. In the formula input box, enter `=AND($G2="",OR($D2:$F2<>""))`. Ensure the row number matches your selection. Click Format, choose a red fill color on the Fill tab, and click OK.

4
Apply the Rule for Column M

Select your target range in column M. Repeat the process to create a new rule, this time entering the formula `=AND($M2="",$L2<>"")`. Choose your desired warning fill color, then click OK to apply.

Set Up Independent Formula Rules for Columns G and M
Absolute vs Relative Referencing: The dollar sign ($) before the column letters locks the column reference, while leaving the row number (2) without a dollar sign allows the rule to dynamically check each subsequent row in your selected range.
Solve Formatting Issues Easily

Effortlessly Highlight Missing Data with WPS Spreadsheet

WPS Spreadsheet fully supports advanced conditional formatting and formula-based rules, allowing you to highlight missing data effortlessly. It is an excellent, highly compatible alternative for handling complex Excel tasks.

  1. 1. Open Your File in WPS Spreadsheet: Launch WPS Office and open your workbook containing the invoice and payment data.
  2. 2. Select Your Target Data Range: Highlight the specific column (like G or M) where you want missing data to trigger a visual warning.
  3. 3. Access Conditional Formatting: Go to the Home tab on the top menu ribbon, click Conditional Formatting, and choose New Rule.
  4. 4. Apply Your Formula Criteria: Select 'Use a formula to determine which cells to format', paste your specific AND/OR formula, and customize the background color under the Format button.
  5. 5. Confirm and Save: Click OK to apply the formatting rule. Your worksheet will now automatically track and highlight missing entries.
Full compatibility with Microsoft Excel (.xlsx) formats and formulasEasily supports complex AND/OR conditional formatting rulesFamiliar interface with absolutely no learning curveFree and lightweight office suite for Windows, Mac, and Linux
microsoft office alternative - wps office

Frequently Asked Questions

Why is my conditional formatting highlighting the wrong rows?

This usually happens if the row number referenced in your formula (e.g., $G2) does not perfectly match the first row of your currently selected range. Ensure the formula always references the exact starting row of your highlighted selection.

Can I apply conditional formatting to highlight an entire row instead of just one cell?

Yes. Select the entire row range instead of just a single column before creating the rule. By ensuring your column references in the formula are locked with a dollar sign (e.g., $G2), Excel will apply the formatting to the entire row based strictly on the specific column's value.

How do I edit or remove a conditional formatting rule I no longer need?

Navigate to the Home tab, click Conditional Formatting, and select Manage Rules. From the Rules Manager dialog box, you can select 'This Worksheet' from the dropdown to find your specific rule, then click Edit Rule to modify it or Delete Rule to remove it entirely.