Table to lists

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,922
Office Version
  1. 365
Platform
  1. Windows
Hi,

Workfile KS v5.9.xlsb
BCDEFGHIJK
2Ref TableOutput
3
4CEOIT DirectorSalesInternABCD
5A1110CEO, IT Director, SalesCEOCEO, IT DirectorCEO, IT Director, Sales, Intern
6B1000
7C1100
8D1111
Sheet1


I have a cross-tab reference table sheet Data with projects listed vertically, job titles horizontally and matrix for yes and no (1 and 0)

In sheet Output, I have the same projects listed horizontally and underneath each project, I need to list the job titles based on the reference table.

What formula could I use to return this output?

TIA,
Jack
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Maybe

=TEXTJOIN(", ",1,IF(INDEX($C$5:$F$8,MATCH(H4,$B$5:$B$8,0),0),$C$4:$F$4,""))
 
Upvote 0
Thank you @Fluff I got as far as TEXTJOIN(",",1,FILTER(...)) but wasn't sure how to make the second part of the filter 'dynamic' to scan the projects vertically to then find the correct row - second FILTER function.

Thank you @jasonb75 I got as far as above then switched to INDEX but still didn't quite complete it.

Much appreciated and can adapt, thank you both!
 
Upvote 0
@Fluff, looks like you can drop "=1" from your formula as well, i.e.

=TEXTJOIN(", ",1,FILTER($B$3:$E$3,FILTER($B$4:$E$7,$A$4:$A$7=G3)))
 
Upvote 0
If you will only ever have 1s & 0s, then as you say the =1 is not required. I tend to put it in as I feel it's more intuitive.
 
Upvote 0
Yeah, in this case, it is binary 1 and 0 only (Is person of job title is required in that project or not?), but see I why you'd use, especially when not 1 and 0, thanks for explaining :)
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,755
Members
448,989
Latest member
mariah3

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