A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Use a formula that checks each signup sheet and joins the matching sheet names into one cell.
Example for S1, if the name is in A2 and the signup sheets are S4, S5, and S6:
=TEXTJOIN(", ",TRUE,
IF(COUNTIF(S4!A:A,A2)>0,"S4",""),
IF(COUNTIF(S5!A:A,A2)>0,"S5",""),
IF(COUNTIF(S6!A:A,A2)>0,"S6","")
)
How it works:
-
COUNTIF(S4!A:A,A2)>0checks whether the name inA2appears on sheetS4. -
IF(...,"S4","")returns the sheet name if found, otherwise blank. -
TEXTJOIN(", ",TRUE,...)combines all matching sheet names, such asS4, S5.
If Siz is in A2 on S1 and appears on S4 and S5, the result will be:
S4, S5
If the name might be on many sheets, extend the same pattern:
=TEXTJOIN(", ",TRUE,
IF(COUNTIF(S2!A:A,A2)>0,"S2",""),
IF(COUNTIF(S3!A:A,A2)>0,"S3",""),
IF(COUNTIF(S4!A:A,A2)>0,"S4",""),
IF(COUNTIF(S5!A:A,A2)>0,"S5","")
)
If the names are not in column A on the signup sheets, replace A:A with the correct column or range.
References: