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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,223,350
Messages
6,171,590
Members
452,412
Latest member
sprichwort

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