A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I have a list of customers in column A, and a list of products in columns E-AE. Some customers are only registered for one product, while others are registered more than one. I used a formula to input True or False is column C for if the customer is taking part in more than one product. But now I want column D to return a list of all the products the client is registered for. For instance, in the example below, I want D2 to return Product 1, Product 3. Is there a formula I can input? Using 2010 version
a b c d e f g 1 Customer Product 1 Product 2 Product 3 2 Cust 1 2 2 3 Cust 2 1 1 4 Cust 3 3
Try this formula in cell D2:
=TEXTJOIN(", ",TRUE,IF(E2:AE2<>"",E$1:AE$1,""))
NOTE: This is an array formula that must be confirmed with CTRL+SHIFT+ENTER rather than just ENTER.
Copy the formula down column D as far as you have data in column A.
Hope this helps / Lars-Åke