Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
Heads up: Excel and Google Sheets do this differently.
=TEXTJOIN(", ",TRUE,IF(B2:B4=A2,C2:C4,""))=TEXTJOIN(", ",TRUE,FILTER(C2:C4,B2:B4=A2))Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Need the Google Sheets version instead? Open Sheets variant in workspace →
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
TEXTJOIN was introduced in Excel 2019 and Excel 365. In Excel 2016 or earlier, you need a VBA function or a complex nested CONCATENATE approach.
In Google Sheets: =TEXTJOIN(", ",TRUE,FILTER(C2:C100,(B2:B100=A2)*(D2:D100=A3))). In Excel 365: use nested IF with AND logic inside TEXTJOIN.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: