Function Problems

WPS Spreadsheets IF Formula for Yes, No, N/A, and Blank Data Validation Lists

Anum MushtaqAnum Mushtaq Nov 12, 2026 869 views

Question details

The user needs an IF formula that responds to Yes or No selections and controls whether a dependent cell is blank or displays N/A.

WPS Spreadsheets IF Formula for Yes, No, N/A, and Blank Data Validation Lists
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
A worksheet uses a Yes/No drop-down in one cell and needs dependent cells to remain blank for Yes or display N/A for No, while potentially allowing later list selections.
Observed behavior
A formula can return a blank string for Yes and N/A for No, but entering a manual value from a data-validation list in that same cell overwrites the formula.
Before you start

Decide which cells will be user-input cells and which will be formula-result cells. Confirm that the Yes/No source cell uses the exact text values Yes and No, including capitalization and spaces.

Solution 1Recommended

Use separate input and result cells with an IF formula

Use this approach when the dependent result only needs to display a blank or N/A value based on the first selection.

A formula-driven cell cannot also preserve its formula after a user selects a different value from its data-validation list. Keep the manual selection in one column and place the IF result in a separate column.

1
Create the Yes/No input list

Select the source cells, open the Data tab, choose Data Validation, set Allow to List, and enter Yes,No as the list source.

2
Enter the dependent formula

Select the first dependent result cell, such as B2, and enter =IF($A2="No","N/A",IF($A2="Yes","","")) . Press Enter, then fill or copy the formula down the column.

3
Test both selections

Choose Yes from the drop-down in A2 and confirm that B2 appears blank. Choose No and confirm that B2 displays N/A.

4
Keep manual choices in another column

If users must select additional values from a list, create that validation list in a separate input column instead of placing it in the formula cell.

Expected result: The dependent cell stays blank when the source cell is Yes and displays N/A when the source cell is No, without losing the formula.
Spreadsheet formula and validation tools

Build Yes, No, N/A, and blank workflows in WPS Spreadsheets

WPS Spreadsheets lets you combine Data Validation drop-down lists with IF formulas in separate input and result cells. This keeps formulas intact while automatically showing N/A or a blank result based on the user’s selection.

  1. 1. Add the source drop-down: Open the worksheet in WPS Spreadsheets, select the source cells, then choose Data > Data Validation and create a Yes,No list.
  2. 2. Add the conditional formula: In a separate dependent cell, enter =IF($A2="No","N/A",IF($A2="Yes","","")) and adjust the cell reference to match your layout.
  3. 3. Fill the formula down: Copy the formula to the remaining dependent rows using the fill handle or copy and paste.
  4. 4. Verify the workflow: Select Yes and No from the source list and confirm that the dependent cells become blank or show N/A without losing their formulas.
Create Yes/No drop-down lists through the Data Validation dialog.Use IF formulas to return N/A or a blank result automatically.Keep manual selections separate so users do not overwrite formulas.Open and save Microsoft Excel XLSX workbooks with familiar spreadsheet formatting.Use a lightweight spreadsheet editor for conditional worksheet workflows.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my IF formula disappear after I choose a value from the drop-down list?

The selected data-validation value replaces the cell contents, including the formula. Put the drop-down selection in one cell and the IF formula in a separate result cell.

What formula shows N/A for No and a blank for Yes?

If the Yes/No value is in A2, use =IF($A2="No","N/A",IF($A2="Yes","","")) in the dependent result cell.

Can a formula cell also allow users to choose values from a list?

Not reliably with standard data validation. A manual selection overwrites the formula, so use separate input and result cells or a VBA macro for a same-cell workflow.

How do I make the formula work for multiple rows?

Use a relative row reference such as $A2, enter the formula in the first result row, and fill it down. The row number will update automatically while column A remains fixed.

What happens if the source cell is empty or contains another value?

The nested formula returns a blank for any value other than No because its final condition is also an empty string. Add another IF condition if other source values need different results.