If you add a UserDefined (ALT+F11, INSERT|Module and paste) function like:
then use formula:
=SUBSTITUTE(TRIM(aconcat(IF('Wrestler A'!$E$2:$E$12="W",'Wrestler A'!$B$2:$B$12,"")," "))," ",",")
confirmed with CTRL+SHIFT+ENTER not just ENTER and copy down.
same in Losses column, just change "W" to "L"
You can use INDIRECT to copy down and get to appropriate sheet based on column A having same name as sheet name.
e.g.
=SUBSTITUTE(TRIM(aconcat(IF(INDIRECT("'"&$A2&"'!$E$2:$E$12")="W",INDIRECT("'"&$A2&"'!$B$2:$B$12"),"")," "))," ",",")
Bookmarks