JoinText formula that strings together a range of cells with a comma but ignores the value in that column that is the same row as the formula.

MDBWebDev

New Member
Joined
Apr 10, 2023
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
I have column A that has product URL handles. Column B, I need a formula that joins all cells in column A, delimiter is a comma, ignoring empties is TRUE, BUT I need it to ignore the row that the formula is currently in so B3's formula would skip A3 and B4 would skip A4.

Somethign like: TextJoin(",",TRUE, A2:A20, Except A column value in current row)
 

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,)
Hi & welcome to MrExcel.
How about
Excel Formula:
=SUBSTITUTE(TEXTJOIN(",",, $A$2:$A$20),A2&",","")
 
Upvote 0
Also

=TEXTJOIN(",",TRUE,FILTER($A$2:$A$12,$A$2:$A$12 <> $A2))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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