How do I concatenate multiple rows if they are the same / if they equal true?
Hi all,
I'm trying to figure out a way to concatenate numbers from multiple rows based on an "if" statement. Below you'll see my columns and data.
Essentially, I'm trying to figure out how I can:
- Find if the 'product id' is the same as the 'product id' in the cell above it
- If it is the same (ie TRUE), then grab its image number from the 'Image' column and add it to the 'Concatenated Images' column. If the 'product id' is not the same as the cell above it (ie. FALSE), don't concatenate (leave cell blank)
The end goal is to have a list of all the concatenated numbers from the 'Image' column in one cell , each separate by a comma. For example, the 'Concatenated Images' cell for first row (Product Id 4) would look like: '2308, 2309, 2310, 2311, 3073, 4102, 4757, 4758, 4759'
In the screen shot below, you'll see my current formula. As of now, I'm able to get two values separated by a comma. While this is progress, I still can't figure out how to get all the numbers in the 'Image' column into one cell, separated by commas.
Any insights would be greatly appreciated. Let me know if any of this is vague or confusing and I'll clarify in a follow-up post.
Thanks,
Andrew