How to shorten a formula and remove commas from empty boxes?

Hello

Is it possible to shorten the formula and remove commas from empty boxes?

Thanks Ryszard



[Re-Titled by Moderator]

MacBook Air 13″, macOS 15.4

Posted on May 4, 2025 12:40 AM

Reply
2 replies
Sort By: 

May 4, 2025 2:23 AM in response to ryszard242


You can use the TEXTJOIN function.


In I2, filled down:


=TEXTJOIN(",",1,A2:G2)


Which should appear as:


=TEXTJOIN(“,”,TRUE,A2:H2)


The TRUE means skip blank cells.


More on TEXTJOIN here:


TEXTJOIN - Apple Support


Use ; instead of , in the formula if your region uses , as the decimal separator.


=TEXTJOIN(",";1;A2:G2)


SG

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to shorten a formula and remove commas from empty boxes?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.