Formula Errors

Excel Formula to Display Specific Text Based on Two Cell Conditions

Emma BrownEmma Brown Nov 10, 2026 869 views

Question details

The user needs an Excel formula to output a specific string ('WalkIn') when two specific criteria are met: either both input cells are completely blank, or the second cell contains the specific text 'ZOOM'.

How to Create an Excel Formula to Display Text Based on Two Cell Conditions
Product
Excel
Device & OS
not provided
Scenario
Setting up a conditional tracking spreadsheet where an entry needs to be automatically labeled as 'WalkIn' based on the absence of data in two specific columns or a designated meeting type (ZOOM) in the second column.
Observed behavior
Requires a functional logical formula combining IF, OR, and AND functions to accurately evaluate the two target cells and output the correct text without resulting in formula errors.
Before you start

Ensure that the cells you are referencing do not contain hidden spaces, as a cell containing a space character is not considered completely blank by Excel formulas.

Solution 1Recommended

Use a Nested IF, OR, and AND Formula

Combine IF, OR, and AND functions to check multiple conditions simultaneously and return the desired text when those criteria are satisfied.

The IF function evaluates a logical test and returns one value if true, and another if false. By nesting OR and AND functions within it, you can instruct Excel to check if both cells A and B are blank, OR if cell B specifically contains your target keyword.

1
Select the target cell

Click on the cell where you want the result to appear (for example, row 6).

2
Enter the nested formula

Type the following formula into the formula bar: =IF(OR(AND($A6="",$B6=""),$B6="ZOOM"),"WalkIn","")

3
Apply the formula

Press Enter to execute the formula. If the conditions are met, 'WalkIn' will appear; otherwise, the cell will remain blank.

4
Fill down for remaining rows

Click and drag the fill handle (the small square at the bottom-right of the selected cell) down your column to copy the formula to additional rows.

Use a Nested IF, OR, and AND Formula
Absolute vs Relative References: The use of the dollar sign ($) before the column letters ensures that the formula always checks columns A and B, even if you accidentally copy or move the formula to another column.
Use WPS Spreadsheet

Apply Conditional Formulas Easily in WPS Office

WPS Spreadsheet fully supports advanced logical formulas including IF, AND, and OR. You can easily set up conditional text evaluation just like in Microsoft Excel, completely for free.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the document where you need to apply the conditional formula.
  2. 2. Input the logic formula: Select your target cell and type =IF(OR(AND($A6="",$B6=""),$B6="ZOOM"),"WalkIn","").
  3. 3. Drag to apply: Press Enter, then use the fill handle to drag the formula across your entire data range easily.
100% compatible with Microsoft Excel (.xlsx) formulas and formattingBuilt-in formula hints and error checking for complex nested logicFree and lightweight alternative for professional spreadsheet management
QA img-9

Frequently Asked Questions

Why does my formula fail when the cell looks blank but actually isn't?

If a cell contains a space character or a hidden apostrophe, the formula will not treat it as blank (""). You can use the TRIM function or clear the cell contents completely to resolve this issue.

How can I make the formula case-sensitive for the word 'ZOOM'?

Standard Excel logical comparisons are mostly case-insensitive. If you want to strictly evaluate exact casing, use the EXACT function. Replace $B6="ZOOM" with EXACT($B6,"ZOOM").

Can I add a third condition to return a different text?

Yes. You can use the IFS function (available in newer versions) or nest another IF statement inside the 'value_if_false' parameter of your current formula to evaluate additional conditions.

What if my cells are in a different row or column?

Simply modify the cell references in the formula. For example, if your data is located in columns D and E starting at row 2, update the formula to =IF(OR(AND($D2="",$E2=""),$E2="ZOOM"),"WalkIn","").