Assuming your output is in row 2 and your source data is in columns K and L try this array entered formula in the first cell of the summary. Fill down and across until you get blanks. If .you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
EDIT I just noticed the expected output has only 3 returns. It appears that you wish to not include UserName "RAM ...." If that is true try this array entered formula instead.
Bookmarks