Return Names with Yes Values Using an Excel Formula
Question details
List names from column A when all corresponding cells in columns B through F contain Yes, without typing the names into the formula.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains names in column A and Yes values in columns B through F. The user wants a separate list of matching names.
- Observed behavior
- The desired list should reference the source name cells and update when values within the source range change.
Check that the names are in column A and the values to test are in columns B through F. The examples assume row 1 contains headers and data runs from row 2 to row 100; adjust the ranges to fit your sheet.
Use FILTER to return matching names in Excel
Use this formula in Microsoft 365 or Excel 2021 to produce an automatically updating list.
Click cell H2, or another empty cell with enough blank space below it for the results.
In H2, enter =FILTER(A2:A100,(B2:B100="Yes")*(C2:C100="Yes")*(D2:D100="Yes")*(E2:E100="Yes")*(F2:F100="Yes"),"") and press Enter.
Review the names spilled below H2. A name appears only when all five cells in that row, from B through F, equal Yes.

List matching names with formulas in WPS Spreadsheet
Use a helper column and an INDEX formula in WPS Spreadsheet to create a compact list of names whose cells in columns B through F all say Yes.
- 1. Open the worksheet: Open your workbook in WPS Spreadsheet. Leave columns G and H available for the helper values and the results.
- 2. Number matching rows: Enter =IF(AND(B2="Yes",C2="Yes",D2="Yes",E2="Yes",F2="Yes"),COUNTIF($G$1:G1,">0")+1,"") in G2, then drag its fill handle down through G100. Keep G1 as a text header or blank.
- 3. Return the first name: Enter =IFERROR(INDEX($A$2:$A$100,MATCH(ROWS($H$2:H2),$G$2:$G$100,0)),"") in H2 and press Enter.
- 4. Fill the results down: Drag the fill handle from H2 down through H100. Matching names appear in a compact list and update when the source values change.

Frequently Asked Questions
Does the Excel formula require Yes in every column?
Yes. Multiplying the five conditions in the FILTER formula requires each cell from B through F in the same row to equal Yes.
Why does Excel show a #SPILL! error?
The FILTER result needs empty cells below the formula. Clear any values or merged cells in the intended spill area and check the result again.
Will the list include new rows after row 100?
Not until you extend the formula ranges. For example, change every range ending in row 100 to end at row 200. In the WPS helper-column method, also fill the formulas down to cover the added rows.
What happens when no rows match?
The Excel FILTER formula uses an empty string as its third argument, so it displays an empty result instead of an error.




