Formula Errors

Fix AND Function Failing in Excel Array Formulas

Steve KSteve K Nov 10, 2026 869 views

Question details

The user needs to evaluate multiple criteria row-by-row in an array formula, but the standard AND function is not working as expected.

How to Fix AND Function Failing in Excel Array Formulas
Product
Excel
Device & OS
not provided
Scenario
Trying to find the earliest matching time using multiple full-column array criteria.
Observed behavior
The AND function evaluates the entire array as a single TRUE or FALSE value instead of processing each row separately, returning incorrect calculations.
Before you start

Verify that all your referenced data ranges are the exact same size, and try to avoid using entire column references (like A:A) in array formulas, as they can severely slow down calculation speeds.

Solution 1Recommended

Use Boolean Multiplication (*) Instead of the AND Function

Boolean multiplication forces the spreadsheet to evaluate multiple conditions row-by-row, returning 1 for TRUE and 0 for FALSE for each individual row.

In an array formula, the standard AND function aggregates all logical tests into a single boolean result. To force row-by-row evaluation, you must multiply your criteria arrays together. When multiplying, TRUE evaluates to 1 and FALSE evaluates to 0. Only rows where all conditions are TRUE will yield a 1.

1
Select the target cell

Click on the cell where you want the final calculated result (such as the minimum time) to appear.

2
Enter the multiplication formula

Type your formula structure, replacing the AND function with an asterisk (*). For example: =MIN(IF((Data!L:L=Answer!H1)*(Data!G:G=Answer!A2),TIMEVALUE(Data!M:M))).

3
Commit as an array formula

Press Ctrl+Shift+Enter on your keyboard simultaneously. The formula bar will display curly braces {} around your formula, indicating it is processing the array.

Use Boolean Multiplication (*) Instead of the AND Function
Boolean Logic Tip: Using the asterisk (*) effectively acts as an 'AND' operator for arrays. If you ever need an 'OR' operator in an array, use the plus sign (+) instead.
Advanced Formula Support

Master Array Formulas with WPS Spreadsheets

WPS Spreadsheets fully supports complex array formulas, dynamic arrays, and boolean logic. Easily troubleshoot and calculate row-by-row criteria without limitations, all within a familiar and intuitive interface.

  1. 1. Open your workbook: Launch WPS Spreadsheets and open your existing document containing the raw data and criteria.
  2. 2. Enter the boolean formula: Click on the target cell and type your formula, using the asterisk (*) to multiply your conditions instead of relying on the AND function.
  3. 3. Execute the array: Press Ctrl+Shift+Enter on your keyboard. WPS Spreadsheets will automatically wrap your formula in curly braces and calculate the array accurately.
Seamless compatibility with Microsoft Excel .xlsx files and formula syntaxNative support for advanced array functions and boolean multiplicationBuilt-in error checking and formula evaluation tools for easy debuggingLightweight, fast execution even with large datasets
QA img-9

Frequently Asked Questions

Why does the OR function also fail in Excel array formulas?

Similar to the AND function, the OR function is designed to evaluate an entire array and return a single aggregated TRUE or FALSE result. To simulate OR conditions row-by-row in an array formula, use addition (+) between your criteria instead.

Do I always need to press Ctrl+Shift+Enter for array formulas?

In older versions of Excel, you must press Ctrl+Shift+Enter to explicitly tell the software to evaluate the formula as an array. However, in newer versions supporting dynamic arrays (like Microsoft 365) and modern builds of WPS Office, pressing simply Enter is often sufficient.

What does the asterisk (*) actually do in an array formula?

The asterisk acts as a multiplication operator that forces numerical evaluation of boolean arrays. It multiplies the TRUE (1) and FALSE (0) results of your conditions. Since multiplying by zero always yields zero, only rows where all conditions are TRUE (1 * 1 = 1) will be included in your final calculation.