Concat based on a "trigger" cell

nickhills1

New Member
Joined
Mar 20, 2024
Messages
8
Office Version
  1. 2021
Platform
  1. Windows
Morning Excel Champions..

Looking for your assistance please.

I am trying to work out how to Concat cells based on another "trigger" cell.

So in my example, i want to Concat the all of the job titles together, split with a comma, for each of the trigger numbers in column B.

For example all of the job titles with "1" in column B would concat from C2, C3 and C4 into E2

All of the job titles for "3" would concat from C6 and C7

Thanks in advance

Nick
 

Attachments

  • Screenshot 2024-06-19 071511.png
    Screenshot 2024-06-19 071511.png
    30.9 KB · Views: 12

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Upvote 1
Solution
Do you just mean something like this ?

20240619 Filter TextJoin nickhills1.xlsx
ABCDE
1TriggerJob TitleResult
21DoctorDoctor, Nurse, Teacher
31Nurse 
41Teacher 
52DoctorDoctor
63CleanerCleaner, Driver
73Driver 
84Project ManagerProject Manager, Excel Guru, Farmer, Cleaner, Driver
94Excel Guru 
104Farmer 
114Cleaner 
124Driver 
Data
Cell Formulas
RangeFormula
E2:E12E2=IF(B2<>B1,TEXTJOIN(", ",TRUE,FILTER($C$2:$C$12,$B$2:$B$12=B2)),"")


Many thanks Alex.. That seems to work perfectly!!!

Have a fantastic Thursday
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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