Sumproduct, Combine if multiple results

traggs25

New Member
Joined
Jun 28, 2014
Messages
9
My formula is on google sheets but I think that this is more of a formula question and doesn't really matter if it is Sheets or Excel. Hope this is the correct place to post.

I have a sheet that ALMOST does exactly what I need.

In the sheets "SS", "Sci", "ELA", "Math" I have data about individual teachers with the rooms and periods they teach. I use the sheet "Scrap" to pull off all the information from those 4 sheets into one and retype the periods into individual days. Lastly, on the "Rooms" sheet I want to see which rooms are used during each period AND what teacher uses that room at that time.

https://docs.google.com/spreadsheets...it?usp=sharing

This is a small sample of what I end up with which works GREAT!!!
At the moment, what happens is that if there is 1 match then it returns a name but >1 match returns a number.

Is there a way to add on to this formula in order to make it so that when there is >1 match it will concatenate the names together (maybe with "/" between the names).

(for example on the sheet "Rooms" instead of G24 saying "2" I'd want it to say "Jim/Sam". I want to be able to drag the formula across and down to the entire area. And it could have several names concatenated together)

Thank you very much for your help. This forum always seems to come through!
Traggs
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,214,376
Messages
6,119,181
Members
448,871
Latest member
hengshankouniuniu

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