Your comments

You can use TRANSPOSE function to put the output in the same row.