Join text together if condition is met

keef2

Board Regular
Joined
Jun 30, 2022
Messages
185
Office Version
  1. 365
Platform
  1. Windows
Hey all,

Have a situation I am stumped on. The overview is I have a long list of employees with appropriate trainings. What I am looking to do is if "x" is in the box I want to join all text for all "x" values. Text values will be in row 3 in this example. I cannot seem to find the right solution, any help is much appreciated.

For this example Javier is where I tried to get something to work unsuccessfully. The output should be "CPR, 30hr, CP, HS, CT, R".

Schedule KEM WORKING.xlsm
STUVWXYZAAABACADAEAF
3CP30hr10hrcprhsractst
4Employee InformationTrainings
5FOREMANPhone #CompetentOSHA 30OSHA 10CPRHand SignalRiggingAsbestosCerta TorchScaffold
6Javier Rodriguez CPxxxxxx
7Pedro Rodriguez CT,HS,RT,ST,R,30hr
8Santos Toribio CPR,30hr,CP,HS,CT,R
9Jose Portillo CP,HS,CT,R
10Bob Faulkner 30hr,CP,HS,CT,R
11Marco Barajas 30hr,CP,CT,R
12James Fredericks 30hr,CPR
Inputs
Cell Formulas
RangeFormula
U6U6=TEXTJOIN(" ",TRUE,IFS(X6="x",X3,Y6="x",Y3,Z6="x",Z3,AA6="x",AA3,AB6="x",AB3,AC6="x",AC3,AD6="x",AD3,AE6="x",AE3,AF6="x",AF3))
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
How about
Excel Formula:
=TEXTJOIN(" ",,FILTER(X3:AF3,X6:AF6="x"))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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