Function Problems

How to Return Results for Multiple True Conditions in Excel

Tauseeq MagsiTauseeq Magsi Oct 16, 2026 875 views

Question details

The user needs a single Excel formula to evaluate multiple conditions and output a result for every condition that evaluates to true.

How to Return Results for Multiple True Conditions in Excel
Product
Excel
Device & OS
not provided
Scenario
Evaluating complex data ranges where multiple criteria might be met simultaneously, requiring the extraction of all corresponding labels or values.
Observed behavior
Standard nested IF functions only return the value for the first true condition and immediately stop evaluating the rest of the conditions.
Before you start

Ensure your version of Excel or your spreadsheet software supports dynamic array functions like FILTER and TEXTJOIN, which are highly recommended for extracting and combining multiple matches efficiently.

Solution 1Recommended

Use TEXTJOIN and FILTER Functions to Output All Matches

Combine TEXTJOIN and FILTER to extract an array of all matching results and display them as a comma-separated string in a single cell.

This is the most modern and efficient approach. The FILTER function will extract all values that meet your criteria, while TEXTJOIN compiles those extracted values into a single, clean text string.

1
Select the output cell

Click on the cell where you want the combined true results to appear.

2
Enter the TEXTJOIN function

Type the formula starting with =TEXTJOIN(", ", TRUE, ) to specify a comma separator and instruct Excel to ignore any empty cells.

3
Nest the FILTER function

Inside the TEXTJOIN formula, add your FILTER function to test your multiple conditions. For example: FILTER(P2:X2, {S5,W5,AA5}>1, ""). Ensure the conditional array sizes align with your source data.

4
Evaluate the formula

Press Enter. The complete formula (e.g., =TEXTJOIN(", ", TRUE, FILTER(P2:X2, {S5,W5,AA5}>1, ""))) will now evaluate all conditions and return every true match in one cell.

Use TEXTJOIN and FILTER Functions to Output All Matches
Dynamic Updates: Because this relies on dynamic arrays, the output cell will automatically update if any of the underlying conditions change to true or false.
WPS Spreadsheet Solution

Easily Evaluate Complex Formulas with WPS Office

WPS Office fully supports advanced dynamic array functions like TEXTJOIN and FILTER. You can seamlessly evaluate multiple conditions and process complex data arrays exactly as you would in Microsoft Excel, completely for free.

  1. 1. Open your data in WPS Spreadsheet: Launch WPS Office and open your existing spreadsheet document containing the complex data.
  2. 2. Input the array formula: Select an empty cell and type in your combined =TEXTJOIN(..., FILTER(...)) formula to evaluate your multiple conditions.
  3. 3. Execute the calculation: Press Enter to instantly display all matching true conditions in one consolidated cell.
Fully compatible with Microsoft Excel file formats (.xlsx) and functions.Supports modern dynamic array functions including FILTER, VSTACK, and TEXTJOIN.Lightweight, fast-loading, and easy-to-use tabbed interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my nested IF formula only return one result?

A standard nested IF function evaluates conditions sequentially and stops evaluating as soon as it encounters the very first TRUE condition. It is designed to return a single definitive output based on a prioritized sequence, not to aggregate multiple TRUE results.

Can I output the multiple true results into separate cells instead of combining them?

Yes. By using the FILTER function on its own (without wrapping it in TEXTJOIN) or by utilizing VSTACK/HSTACK functions, the spreadsheet will dynamically 'spill' each true result into adjacent empty cells rather than packing them into one.

What if my spreadsheet version doesn't support TEXTJOIN or FILTER?

In older software versions, you can concatenate multiple independent IF statements using the '&' symbol or the CONCATENATE function. This forces the software to evaluate each IF separately and string together all true outputs into a single text string.