Unique, Filter, and Textjoin needs improvement or VBA

arcaidius

Board Regular
Joined
Dec 4, 2018
Messages
97
I have the following two formulas, first in cell A9, second in cell C9:

Excel Formula:
=UNIQUE(FILTER(Table2[[ZINC462]:[ZINC47]],(Table2[ZINC462]<>"N/A")+(Table2[ZINC47]<>"N/A")),FALSE)
Excel Formula:
=TEXTJOIN(CHAR(10),1,IF((Table2[ZINC462]=A9)*(Table2[ZINC47]=B9),Table2[Connections],""))

It does its job, but returned values in C9 are all together without any spacing or comma's or anything between. If I change the cell to wrap text, it will be in a list, which is better, but its a long list and this code is dragged down into the cells below. These values will also be pasted into a form when there is a change, so it will be some manual comma and space inserting when this is done. Is there a way to either edit this formula or change it to VBA so that a comma and space are between each value?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Just change the CHAR(10) to ", "
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,576
Members
448,972
Latest member
Shantanu2024

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