A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
To return only rows where the Name column contains exactly Jane, enter =FILTER(A2:D100,B2:B100="Jane","No match") in an empty cell.
Replace:
-
A2:D100with the complete range you want returned. -
B2:B100with the Name column. -
"Jane"with a cell reference, such asF1, if you prefer to type the name into a separate cell.
For example:
=FILTER(A2:D100,B2:B100=F1,"No match")
Type Jane in F1. Excel will return every matching row and spill the results into the cells below and beside the formula. The return range and condition range must cover the same number of rows. The third argument displays No match instead of #CALC! when Jane is not found.^1^
If you want to return only the names rather than complete rows:
=FILTER(B2:B100,B2:B100="Jane","No match")
If the formula produces #SPILL!, clear any populated or merged cells in the area where the results need to appear. Also ensure that quotation marks surround literal text such as "Jane".
References