How to Return TRUE or FALSE for Repeated Excel Item Matches
Question details
The user needs an Excel formula to check if an item appears in each of eight different phases, outputting a TRUE or FALSE indicator for every phase, rather than just returning the first match.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Evaluating an item's presence across multiple distinct phase ranges to track repeated occurrences.
- Observed behavior
- The standard MATCH function only identifies the first occurrence of an item and stops searching, failing to generate boolean indicators for the subsequent phases.
Ensure that your item reference cells and phase ranges are clearly defined, and use absolute references (like $K$5) for the lookup value so the formula can be dragged across your phase columns without shifting.
Use COUNTIFS for Boolean Evaluation
The most efficient way to get a TRUE/FALSE result is by comparing a COUNTIFS result to zero. If the item exists in the range, the count is greater than zero, returning TRUE.
This method avoids the limitations of the MATCH function by counting all occurrences of the item in the specified phase range. By appending '>0' to the formula, Excel automatically converts the numerical count into a TRUE or FALSE boolean value.
Click on the first cell where you want the TRUE or FALSE indicator to appear for Phase 1.
Type the formula =COUNTIFS(Phase1_Range, $K5)>0 (replace 'Phase1_Range' with your actual range and '$K5' with your target item cell) and press Enter.
Drag the fill handle across the remaining seven phase columns, ensuring you update the 'Phase_Range' reference for each respective phase if they are not dynamically aligned.

Combine ISNUMBER and MATCH Functions
You can wrap the MATCH function in an ISNUMBER test. This will return TRUE if MATCH successfully finds the item, and FALSE if it returns an #N/A error.
Easily Handle Complex Formulas with WPS Spreadsheet
WPS Office provides robust support for advanced logic tests, COUNTIFS, and array formulas. You can seamlessly manage multi-phase data analysis and return TRUE/FALSE results just as you would in Microsoft Excel.
- 1. Open your file in WPS Office: Launch WPS Spreadsheet and open the workbook containing your phase data.
- 2. Select the formula cell: Click the cell under your first phase column where the TRUE/FALSE result is needed.
- 3. Enter the logic formula: Type =COUNTIFS(phase_range, $K5)>0 and press the Enter key.
- 4. Drag to fill: Click the small square at the bottom-right corner of the cell and drag it across your other phase columns to instantly apply the boolean check.

Frequently Asked Questions
Why does the MATCH function only return the first occurrence?
The MATCH function is designed to stop searching as soon as it finds the first value that meets the criteria. To evaluate whether an item exists in separate distinct ranges, you must apply a separate test (like COUNTIFS or ISNUMBER(MATCH)) to each specific range.
Can I output 'Yes' or 'No' instead of TRUE or FALSE?
Yes. You can wrap your boolean condition inside an IF function. For example, use =IF(COUNTIFS(Phase_Range, $K5)>0, "Yes", "No") to display custom text based on the result.
How can I return all matching phase names instead of TRUE/FALSE?
If you want to extract the actual phase names where the item appears, you can use the FILTER function combined with a boolean array, or use TEXTJOIN with an IF statement to output a comma-separated list of matched phases.
Will using COUNTIFS slow down my Excel workbook?
COUNTIFS is highly optimized, but evaluating hundreds of thousands of rows across multiple phases might cause slight calculation delays. To maintain performance, reference exact data ranges (e.g., A2:A1000) instead of entire columns (e.g., A:A).




