Others

How to Create Drop-Down Lists Only for Nonblank Cells in Excel

Huda QurayshiHuda Qurayshi Nov 4, 2026 869 views

Question details

The user wants to configure a data validation drop-down list in a target table that only shows options if the corresponding cell in a reference table is not empty.

How to Create Drop-Down Lists Only for Nonblank Cells in Excel
Product
Excel
Device & OS
not provided
Scenario
Creating an invoice tracker where users input data into a secondary table based on the existence of records in a primary table, while preserving relationships between accounts and months.
Observed behavior
The goal is to prevent data entry in irrelevant cells by ensuring drop-down options are exclusively available when the matching reference cell contains data.
Before you start

Ensure you know the exact layout of your spreadsheet, specifically the starting cell of your reference table (e.g., Table 1) and your target table (e.g., Table 2), as well as the absolute range of your drop-down list items.

Solution 1Recommended

Use an IF Formula in Data Validation

Apply a conditional formula within the Data Validation settings to check if the reference cell contains data before loading the list items.

By using an IF formula directly in the Data Validation 'Source' box, you can dynamically control when the drop-down list items are populated based on another cell's value.

1
Select the Target Range

Highlight the range in Table 2 where you want the drop-down lists to appear. Ensure the upper-left cell of your selection is the active cell (for example, B11).

2
Open Data Validation

Go to the 'Data' tab on the Excel ribbon and click on 'Data Validation'.

3
Configure the List Criteria

In the Allow drop-down menu, select 'List'. Ensure the 'In-cell dropdown' checkbox is checked.

4
Enter the Conditional Formula

In the Source field, enter a formula similar to =IF(B3<>"",$B$17:$B$18,""). In this example, B3 is the relative reference to the starting cell of Table 1, and $B$17:$B$18 is the absolute reference to your list items. Click OK to apply.

Use an IF Formula in Data Validation
Drop-down arrow visibility: A drop-down arrow will still appear in every cell you selected. However, the selectable list items will only display when the corresponding reference cell in Table 1 is not blank.
Advanced Data Validation Support

Create Conditional Drop-Down Lists with WPS Spreadsheet

WPS Spreadsheet provides robust support for complex Data Validation formulas, allowing you to easily build smart invoice trackers with conditional drop-down lists.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the invoice tracker file.
  2. 2. Highlight target cells: Select the cells in your secondary table where the conditional drop-down is needed.
  3. 3. Apply Data Validation: Navigate to the 'Data' tab, click 'Validation', select 'List', and paste your IF formula into the source box.
Fully compatible with Microsoft Excel (.xlsx) formats and validation rulesSupports complex IF statements within Data Validation criteriaFree, lightweight, and fast spreadsheet processing for large trackersIntuitive user interface that makes finding data tools simple
microsoft office alternative - wps office

Frequently Asked Questions

Can I hide the drop-down arrow completely for blank reference cells?

In standard Data Validation, the drop-down arrow UI element appears by default on all cells that have a list validation rule applied. While you cannot hide the arrow without using VBA macros, the list itself will remain empty and unselectable if the reference cell is blank.

Why is my Data Validation formula throwing an error?

This usually happens if your cell references are incorrect. Ensure that the reference to your list items uses absolute references (with $ signs, like $B$17:$B$18), while the reference to the condition cell uses relative references (like B3) so it adapts to each row.

Can I use Named Ranges in the conditional drop-down formula?

Yes. You can replace the absolute range in your IF formula with a Named Range (e.g., =IF(B3<>"", AccountList, "")). This makes the formula easier to read and manage as your tracker grows.