By: Maruf Islam

In reply to Sepehr.

Greetings Sepehr,

Thank you for your appreciation.

# The answer to your question is “Yes“—it is possible to have the list of products in different columns.

# Just use the TRANSPOSE function preceding the UNIQUE+XLOOKUP formula. Of course, you have to have Excel 365 to use the XLOOKUP function.

=TRANSPOSE(UNIQUE(XLOOKUP(B5,B7:D7,B8:D14),,TRUE))