How my TEXTJOINT show blank when there is no values in cell source

Zaimon

New Member
Joined
Sep 10, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
My TEXTJOINT formula show 0 values even the cell source is empty

=(TEXTJOIN(", ",TRUE,IF($A$2:$A$136=C3,$B$2:$B$136,"")))

Is there anyway I can fix this? What I want to see is blank when the cell source is empty.

Thank you in advance,

1725973954428.png
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Not sure what you are trying to accomplish, but when you use $B$2:$B$136 that will return all 0's since it is blank. You can try this:

Excel Formula:
=(TEXTJOIN(", ",TRUE,IF($A$2:$A$136=C2,IF(ISBLANK($B$2:$B$136),"",$B$2:$B$136),"")))
 
Upvote 1
Hi & welcome to MrExcel.
How about
Excel Formula:
=TEXTJOIN(", ",TRUE,IF($A$2:$A$136=C3,$B$2:$B$136&"",""))
 
Upvote 1
I would use FILTER though
=TEXTJOIN(", ",TRUE,FILTER(B2:B136&"",A2:A136=C3,""))
 
Upvote 1
Solution
Hi Guys, all your suggested formula works well.
Thank you so much for resolving my problem.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 1

Forum statistics

Threads
1,224,813
Messages
6,181,111
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top