PY_,
Attached is an example file based on the criteria you described.
Row 1 is a header row so actual data starts in row2
Column A contains the ABC/XYZ stuff
Column B contains the numbers
Column D is a unique list from columns A (I used the Advanced Filter)
Column E is the list of unique items from column B, and is obtained by using this array formula in cell E2 and copied down. Note that array formulas must be entered with Ctrl+Shift+Enter and not just Enter. That's how the formula gets surrounded by the curly brackets {}, do not try to add those manually.
The ConcatAll function is a UDF I created (original thread here: http://www.excelforum.com/tips-and-t...geravatar.html). The code being used is from post #8 in that thread:
As you can see it only returns the unique values and does not repeat them. If you need a pure VBA solution and not a UDF, let me know and I can provide that.
Bookmarks