Textjoin and skip cells with zero

andrew_milonavic

Board Regular
Joined
Nov 16, 2016
Messages
98
Hi,

Is it possible to textjoin and skip cells with the number zero. I understand I can skip blank cells with true/false etc but zero's are not blank.

Example below:

1
2
0
3
4
1,2,3,4

<tbody>
</tbody>

Thanks

Andrew
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
This is an array formula and must be committed with CONTROL+SHIFT+ENTER not just enter. If done correctly Excel will put {} around the formula.
Code:
=TEXTJOIN(",",TRUE,IF(A1:E1>0,A1:E1,""))
 
Upvote 0
Hey Aladin / Scott,

Last followup.

Any way to make the formula skip zero's with other cells containing text?

Example:

Cat
Dog
0
Fish
Cat,Dog,Fish

<tbody>
</tbody>

Thanks

Andrew
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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