How to Create Drop-Down Lists Only for Nonblank Cells in Excel
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.

- 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.
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.
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.
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).
Go to the 'Data' tab on the Excel ribbon and click on 'Data Validation'.
In the Allow drop-down menu, select 'List'. Ensure the 'In-cell dropdown' checkbox is checked.
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.

Address Dynamic Sorting with Lookup Formulas
Ensure accounts and months remain correctly associated if row or column orders change in Table 2.
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. Open your workbook: Launch WPS Spreadsheet and open the invoice tracker file.
- 2. Highlight target cells: Select the cells in your secondary table where the conditional drop-down is needed.
- 3. Apply Data Validation: Navigate to the 'Data' tab, click 'Validation', select 'List', and paste your IF formula into the source box.

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.




