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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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
Hi & welcome to MrExcel.
How about
Excel Formula:
=SUBSTITUTE(TEXTJOIN(",",, $A$2:$A$20),A2&",","")
This solution also worked great! It would only let me accept one solution. Thank you!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,045
Messages
6,128,484
Members
449,455
Latest member
jesski

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