Collate (or Aggragate?) Text Cells from Multiple Rows in Google Sheets

GSKov

New Member
Joined
Jun 20, 2017
Messages
10
Hi there. I'm not even sure the correct terminology to describe this request. I have a set of data in which one student may have submitted one or more teacher names in a Google Form. What I hope to accomplish is to get the Unique list of teacher names, and then develop a list of every student who chose each teacher. Sheet 1 HERE shows a sample of the data, with Column A as Student name and Column B with comma-separated Teacher names.

I pulled the Unique list of Teacher names into Column G of Sheet1, thinking that might serve as a helper column somehow. Sheet2 shows the output I'd like to generate. Can anyone point me in the right direction of how I might finalize this? Thanks for reading!

Cheers,
Kov
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
How about
Excel Formula:
=textjoin(", ",,filter(A2:A7,isnumber(search(G2,B2:B7))))
 
Upvote 0
Solution
That's brilliant, thank you! I had tried some Filter options, but I don't think they were anywhere close.

I did realize I have another issue. It's possible that the student data may not have any teachers selected. For example, if B8 is blank for the student response, the array in G2 gets #VALUE! on its top row. I guess this is because I used is not null in the Query part of that formula, but I'm not having any luck coming up with how to avoid that. If anyone decides to take a look, thanks in advance!

Cheers,
Kov
 
Upvote 0
I don't know enough about Sheets to help with that.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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