Share via

Text Join when there are blanks

Anonymous
2021-01-22T13:11:36+00:00

The current formula I use for text join is below.  However, if there is a blank cell in column C, I get a zero in my cell.

Example. Medical Specialist, Support Specialist 0, 0

Is it possible to put an If error on this formula to eliminate zeros or do another function?

=TEXTJOIN(", ",TRUE,IF($A$2:$A$300=H2,$C$2:$C$300,""))

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2021-01-22T14:41:33+00:00

As an array formula confirmed with Ctrl+Shift+Enter:

=TEXTJOIN(", ",TRUE,IF(($A$2:$A$300=H2)*($C$2:$C$300<>""),$C$2:$C$300,""))

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful