I have written some code for you. This code works too if the PS Number is duplicated, writing only one. Click in orange arrow (Worksheet "Res"). Blessings!
Just replace Trim with substitute function to get the commas as well.
example:
=IF($E10="","",SUBSTITUTE("("&G10&" PS No "&I10&", "&J10&", "&K10&", "&L10&", "&M10&", "&N10&", "&O10&", "&P10&")",", , ",""))