Textjoin formula needed

annep833

New Member
Joined
Aug 14, 2020
Messages
23
Office Version
  1. 2010
Platform
  1. Windows
Hi, I want to return all the different values in column e associated with all of the matching values in column b with a comma in between the values. I want this formula in column f. For example, cell b2=hammer, b3=hammer, b4= hammer and cell e2=a, e3=b and e=c. If I entered the formula in f2, I want it to return "a,b,c" without the quotes. F3 and f4 would be blank because I just want them combined into one cell. If that's not possible to have the blanks, I could remove duplicates from column b. Thank you
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Which version of XL are you using? You've mentioned "TEXTJOIN" which doesn't exist in 2010 as indicated in your profile.
 
Upvote 0
See if you have GROUPBY:
Book2
BEFGH
1
2hammerabucketd, e
3hammerbhammera, b, c
4hammerc
5bucketd
6bucketd
7buckete
Sheet10
Cell Formulas
RangeFormula
G2:H3G2=GROUPBY(B2:B7,E2:E7,LAMBDA(x,ARRAYTOTEXT(UNIQUE(x))),,0)
Dynamic array formulas.
 
Upvote 0
It means you don't have GROUPBY yet. Here's an alternative:
Book4
BEFGH
1
2
3hammerahammera, b, c
4hammerbbucketd, e
5hammerc
6bucketd
7bucketd
8buckete
Sheet4
Cell Formulas
RangeFormula
G3:H4G3=LET(u,UNIQUE(B3:B8),HSTACK(u,MAP(u,LAMBDA(m,TEXTJOIN(", ",,UNIQUE(FILTER(E3:E8,B3:B8=m)))))))
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,225,609
Messages
6,185,976
Members
453,333
Latest member
BioCoder84

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